aboutsummaryrefslogtreecommitdiff
path: root/js/document/templates/app/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/document/templates/app/main.js')
-rw-r--r--js/document/templates/app/main.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/js/document/templates/app/main.js b/js/document/templates/app/main.js
index bb4cd829..7737ae4c 100644
--- a/js/document/templates/app/main.js
+++ b/js/document/templates/app/main.js
@@ -61,15 +61,14 @@ exports.Main = Montage.create(Component, {
61 var componentRequire = component[data.name]; 61 var componentRequire = component[data.name];
62 var componentInstance = componentRequire.create(); 62 var componentInstance = componentRequire.create();
63 63
64 componentInstance._montage_metadata.label = componentInstance.identifier = data.name; 64 componentInstance._montage_metadata.label = componentInstance.identifier = data.name;
65 componentInstance.element = element; 65 componentInstance.addEventListener("firstDraw", self, false);
66 66
67 componentInstance.element = element;
67 componentInstance.needsDraw = true; 68 componentInstance.needsDraw = true;
68 componentInstance.ownerComponent = self; 69 componentInstance.ownerComponent = self;
69 70
70 self.componentToInsert = componentInstance; 71 self.componentToInsert = componentInstance;
71 componentInstance.addEventListener("firstDraw", self, false);
72
73 callback(componentInstance, element); 72 callback(componentInstance, element);
74 }) 73 })
75 .end(); 74 .end();