Remove JQuery from all setting controllers

This commit is contained in:
jdescottes
2015-02-26 01:25:33 +01:00
parent bcb709300c
commit bab3d6677e
8 changed files with 94 additions and 79 deletions

View File

@@ -3,6 +3,9 @@
ns.AbstractSettingController = function () {};
ns.AbstractSettingController.prototype.addEventListener = function (el, type, callback) {
if (typeof el === 'string') {
el = document.querySelector(el);
}
pskl.utils.Event.addEventListener(el, type, callback, this);
};