Author: ygrego Date: 2015-06-08 10:09:10 +0000 (Mon, 08 Jun 2015) New Revision: 1594 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1594 Log: Addition of the methods "addEventListener" and "removeEventListener". Modified: oipf/js/impl/ApplicationManagerObject.js Modified: oipf/js/impl/ApplicationManagerObject.js =================================================================== --- oipf/js/impl/ApplicationManagerObject.js 2015-06-08 09:51:43 UTC (rev 1593) +++ oipf/js/impl/ApplicationManagerObject.js 2015-06-08 10:09:10 UTC (rev 1594) @@ -13,6 +13,14 @@ _hiddenSystemRootNode: null, + addEventListener: function(type, listener) { + this._eventManager.addEventListener(type, listener, this); + }, + + removeEventListener: function(type, listener) { + this._eventManager.removeEventListener(type, listener, this); + }, + init : function() { this._listeners = {}; this._callbacks = {}; @@ -28,7 +36,7 @@ this._rootApplication = new Application(window, this); }, - _fireEvent: function(type, params) { + _fireEvent: function(type, params) { var event = createCustomEvent(type, params); this._eventManager.fireEvent(event, this); }
participants (1)
-
ygregoï¼ users.nuiton.org