Author: ygrego Date: 2015-06-08 08:00:08 +0000 (Mon, 08 Jun 2015) New Revision: 1590 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1590 Log: The new property "_applicationManager" is necessary in this class. This one is passed in parameter of constructor of this class. Modified: oipf/js/impl/model/Application.js Modified: oipf/js/impl/model/Application.js =================================================================== --- oipf/js/impl/model/Application.js 2015-06-08 07:58:02 UTC (rev 1589) +++ oipf/js/impl/model/Application.js 2015-06-08 08:00:08 UTC (rev 1590) @@ -70,7 +70,8 @@ */ window: null, - init: function(windowApp) { + init: function(windowApp, applicationManager) { + this._applicationManager = applicationManager; this.active = false; this.visible = false; this._setWindow(windowApp); @@ -111,6 +112,12 @@ return null; } + var app = new Application(iframeApp.window, this._applicationManager); + + this._fireEvent("ApplicationLoaded"); + + return app; + }, _setWindow: function(windowApp) { @@ -118,6 +125,11 @@ if (windowApp && windowApp.postMessage) { this.window.postMessage = windowApp.postMessage.bind(windowApp); } + }, + + _fireEvent: function(eventName) { + var event = createCustomEvent(eventName, null); + this._eventManager.fireEvent(event, this); } });
participants (1)
-
ygregoï¼ users.nuiton.org