aboutsummaryrefslogtreecommitdiff
path: root/js/document/templates
diff options
context:
space:
mode:
authorValerio Virgillito2012-06-12 11:49:28 -0700
committerValerio Virgillito2012-06-12 11:49:28 -0700
commitac3ceb7b38482d81c58a4ea12291a4559b87fa3d (patch)
tree8dcf3752b8739df1d5dbcb052125cbf01098fd6f /js/document/templates
parent9d85430967237bd01334212de6f04db3bd222148 (diff)
downloadninja-ac3ceb7b38482d81c58a4ea12291a4559b87fa3d.tar.gz
fix for the the components not rendering and not selecting
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/document/templates')
-rw-r--r--js/document/templates/app/main.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/js/document/templates/app/main.js b/js/document/templates/app/main.js
index 0cdf718c..8dc05ba5 100644
--- a/js/document/templates/app/main.js
+++ b/js/document/templates/app/main.js
@@ -61,13 +61,15 @@ 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.element = element;
65 64
65 componentInstance.addEventListener("firstDraw", self, false);
66
67 componentInstance.element = element;
66 componentInstance.needsDraw = true; 68 componentInstance.needsDraw = true;
67 componentInstance.ownerComponent = self; 69 componentInstance.ownerComponent = self;
68 70
69 self.componentToInsert = componentInstance; 71 self.componentToInsert = componentInstance;
70 componentInstance.addEventListener("firstDraw", self, false); 72
71 73
72 callback(componentInstance, element); 74 callback(componentInstance, element);
73 }) 75 })