From a805487eda772025815890d7a6291dcdb5bd4936 Mon Sep 17 00:00:00 2001 From: Kartheek Palla Date: Mon, 6 Aug 2018 19:35:18 +0530 Subject: [PATCH] Issue #000 fix: collection editor load issue fixed --- app/scripts/collectioneditor/manager/container-manager.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/scripts/collectioneditor/manager/container-manager.js b/app/scripts/collectioneditor/manager/container-manager.js index b8970ecc..eb0e8fb3 100644 --- a/app/scripts/collectioneditor/manager/container-manager.js +++ b/app/scripts/collectioneditor/manager/container-manager.js @@ -8,16 +8,14 @@ org.ekstep.contenteditor.containerManager = new(Class.extend({ this.registeredContainer.push({ id: manifest.id, container: container }); this.load(container, manifest); }, - load: function(container, manifest, allowTemplateCache) { + load: function(container, manifest) { var instance = this; if (container.templateURL) { container.templateURL = org.ekstep.contenteditor.api.resolvePluginResource(manifest.id, manifest.ver, container.templateURL); - instance.loadNgModules(container.templateURL, undefined, allowTemplateCache).then(function(){ - instance.scope.addToContainer(container.type); - }); + instance.loadNgModules(container.templateURL, undefined); if (container.controllerURL) { container.controllerURL = org.ekstep.contenteditor.api.resolvePluginResource(manifest.id, manifest.ver, container.controllerURL); - instance.loadNgModules(undefined, container.controllerURL, allowTemplateCache) + instance.loadNgModules(undefined, container.controllerURL) .then(function() { instance.scope.addToContainer(container); }, function() {