Author: ygrego Date: 2015-03-30 12:44:49 +0000 (Mon, 30 Mar 2015) New Revision: 980 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/980 Log: This object retrieved his original character. Deletion of methods "addEventListener" and "fireEvent" and properties "listeners" and "callbacks". Modified: oipf/js/lib/Class.js Modified: oipf/js/lib/Class.js =================================================================== --- oipf/js/lib/Class.js 2015-03-30 12:29:32 UTC (rev 979) +++ oipf/js/lib/Class.js 2015-03-30 12:44:49 UTC (rev 980) @@ -11,22 +11,5 @@ child.prototype.__proto__ = parent.prototype; child.prototype.super = parent.prototype; - child.prototype.addEventListener = function(type, listener) { - var listenersList = this.listeners[type]; - - if (listenersList) { - listenersList.push(listener); - } else { - this.listeners[type] = [listener]; - } - - }; - - child.prototype.fireEvent = function(event) { - this.listeners[event.type].forEach(function(element){ - element.apply(this, event.detail); - }); - }; - return child; };