Remove unused methods

pull/4186/head
Tuğçe Küçükoğlu 2023-07-10 15:36:14 +03:00
parent b3468cd25e
commit fba22efbb9
1 changed files with 0 additions and 14 deletions

View File

@ -75,20 +75,6 @@ export default {
sessionStorage.setItem('primevue-news-hidden', 'true');
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() {
let ua = window.navigator.userAgent;