Author: ygrego Date: 2015-06-05 13:43:05 +0000 (Fri, 05 Jun 2015) New Revision: 1586 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1586 Log: The object "DateUtils" and "ModelFactory" are directly added in construtor of "OipfObjectFactory". These objects is not passed in parameter of this class's constructor. Modified: oipf/js/impl/OipfObjectFactory.js Modified: oipf/js/impl/OipfObjectFactory.js =================================================================== --- oipf/js/impl/OipfObjectFactory.js 2015-06-02 14:55:31 UTC (rev 1585) +++ oipf/js/impl/OipfObjectFactory.js 2015-06-05 13:43:05 UTC (rev 1586) @@ -26,9 +26,10 @@ } }, - init: function(modelFactory, dateUtils) { + init: function() { console.log("[INFO] constructor of OipfObjectFactory class called."); - this._modelFactory = modelFactory; + var modelFactory = new ModelFactory(); + var dateUtils = new DateUtils(); this._oipfConfiguration = new OipfConfiguration(); this.applicationManagerObject = new ApplicationManagerObject(); this.capabilitiesObject = new CapabilitiesObject(modelFactory);