diff options
author | Ananya Sen | 2012-06-19 11:00:49 -0700 |
---|---|---|
committer | Ananya Sen | 2012-06-19 11:00:49 -0700 |
commit | f1d8401aeb84e0eb0680caf72878dae26fd78a37 (patch) | |
tree | 31771ccaf3d1e2ddf01fa9605438d20be0d155d7 /js/document/templates/app | |
parent | 9ea2610cec6569e7b7d5268b6c65bbf94c4753e5 (diff) | |
parent | 483ad57efcd6475776f580c3af5b60e6deeaf781 (diff) | |
download | ninja-f1d8401aeb84e0eb0680caf72878dae26fd78a37.tar.gz |
Merge branch 'refs/heads/ninja-internal-master' into cut-copy-paste
Diffstat (limited to 'js/document/templates/app')
-rw-r--r-- | js/document/templates/app/main.js | 6 |
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 | }) |