Remove unused methods
parent
b3468cd25e
commit
fba22efbb9
|
@ -75,20 +75,6 @@ export default {
|
||||||
sessionStorage.setItem('primevue-news-hidden', 'true');
|
sessionStorage.setItem('primevue-news-hidden', 'true');
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
},
|
},
|
||||||
addClass(element, className) {
|
|
||||||
if (!this.hasClass(element, className)) {
|
|
||||||
if (element.classList) element.classList.add(className);
|
|
||||||
else element.className += ' ' + className;
|
|
||||||
}
|
|
||||||
},
|
|
||||||
removeClass(element, className) {
|
|
||||||
if (element.classList) element.classList.remove(className);
|
|
||||||
else element.className = element.className.replace(new RegExp('(^|\\b)' + className.split(' ').join('|') + '(\\b|$)', 'gi'), ' ');
|
|
||||||
},
|
|
||||||
hasClass(element, className) {
|
|
||||||
if (element.classList) return element.classList.contains(className);
|
|
||||||
else return new RegExp('(^| )' + className + '( |$)', 'gi').test(element.className);
|
|
||||||
},
|
|
||||||
isOutdatedIE() {
|
isOutdatedIE() {
|
||||||
let ua = window.navigator.userAgent;
|
let ua = window.navigator.userAgent;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue