aboutsummaryrefslogtreecommitdiff
path: root/js/document/templates
diff options
context:
space:
mode:
authorArmen Kesablyan2012-06-19 01:03:59 -0700
committerArmen Kesablyan2012-06-19 01:03:59 -0700
commit2e13a73e4ee980a6f73f6ff48b2a195eb209a7db (patch)
treed352f5e769eae0e1b7b76ccbeafa9b174b1a9918 /js/document/templates
parent244e608645778746d1a3b5aa0d4c0868f7c5c272 (diff)
parentc59eb371559a3061ce53223e249ca97daace5968 (diff)
downloadninja-2e13a73e4ee980a6f73f6ff48b2a195eb209a7db.tar.gz
Merge branch 'refs/heads/master' into binding
Conflicts: js/components/layout/tools-list.reel/tools-list.html js/components/layout/tools-properties.reel/tools-properties.html js/document/document-html.js js/document/templates/app/main.js js/panels/Panel.reel/Panel.js node_modules/montage/ui/native-control.js Signed-off-by: Armen Kesablyan <armen@motorola.com>
Diffstat (limited to 'js/document/templates')
-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();