Author: ygrego Date: 2015-05-12 07:34:25 +0000 (Tue, 12 May 2015) New Revision: 1331 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1331 Log: Deletion of class property "_modelFactory". Differents objects instanciated in method "init" just received the parameter "modelFactory". A new parameter "dateUtils" appears in method "init", the property "recordingSchedulerOject" take its this one at its intanciation in construtor of this class. Modified: oipf/js/impl/OipfObjectFactory.js Modified: oipf/js/impl/OipfObjectFactory.js =================================================================== --- oipf/js/impl/OipfObjectFactory.js 2015-05-11 08:37:40 UTC (rev 1330) +++ oipf/js/impl/OipfObjectFactory.js 2015-05-12 07:34:25 UTC (rev 1331) @@ -6,11 +6,10 @@ */ var OipfObjectFactory = Class.extend({ - init: function() { + init: function(modelFactory, dateUtils) { console.log("[INFO] constructor of OipfObjectFactory class called."); - this._modelFactory = new ModelFactory(data); //this.applicationManagerObject = new ApplicationManagerObject(); - //this.capabilitiesObject = new CapabilitiesObject(); + this.capabilitiesObject = new CapabilitiesObject(); //this.codManagerObject = new CodManagerObject(); this.channelConfig = new ChannelConfig(); //this.imsObject = new IMSObecjet(); @@ -19,8 +18,8 @@ //this.parentalControlManagerObject = new ParentalControlManagerObject(); this.configurationObject = new ConfigurationObject(); this.recordingSchedulerObject = new RecordingSchedulerObject( - this.configurationObject.configuration, this._modelFactory); - this.searchManagerObject = new SearchManagerObject(this._modelFactory); + this.configurationObject.configuration, modelFactory, dateUtils); + this.searchManagerObject = new SearchManagerObject(modelFactory); //this.downloadManagerObject= new DownloadManagerObject(); //this.downloadTriggerObject= new DownloadTriggerObject(); //this.drmAgentObject= new DrmAgentObject();
participants (1)
-
ygregoï¼ users.nuiton.org