aboutsummaryrefslogtreecommitdiff
path: root/user-document-templates/montage-application-cloud/main.reel
diff options
context:
space:
mode:
authorValerio Virgillito2012-02-16 22:45:55 -0800
committerValerio Virgillito2012-02-16 22:45:55 -0800
commite67d1f472dab28b4ff6afc9d9cc06b34756e26b5 (patch)
treef17a01b3ad3ca11fc35e90133fae47fae668378c /user-document-templates/montage-application-cloud/main.reel
parent9f0c4efe2ed9a00f2c5d85c9d88a8040fedb5d8f (diff)
parent90e2b3455a123af8751d63381609b3a5ae304051 (diff)
downloadninja-e67d1f472dab28b4ff6afc9d9cc06b34756e26b5.tar.gz
Merge pull request #51 from mencio/components
Fixing the components not instantianting in the user document
Diffstat (limited to 'user-document-templates/montage-application-cloud/main.reel')
-rw-r--r--user-document-templates/montage-application-cloud/main.reel/main.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/user-document-templates/montage-application-cloud/main.reel/main.js b/user-document-templates/montage-application-cloud/main.reel/main.js
index 86871fd3..567f481c 100644
--- a/user-document-templates/montage-application-cloud/main.reel/main.js
+++ b/user-document-templates/montage-application-cloud/main.reel/main.js
@@ -6,8 +6,6 @@
6var Montage = require("montage/core/core").Montage, 6var Montage = require("montage/core/core").Montage,
7 Component = require("montage/ui/component").Component; 7 Component = require("montage/ui/component").Component;
8 8
9//var Button = ("montage/ui/button.reel").Button;
10
11exports.Main = Montage.create(Component, { 9exports.Main = Montage.create(Component, {
12 10
13 hasTemplate: { 11 hasTemplate: {
@@ -31,6 +29,7 @@ exports.Main = Montage.create(Component, {
31 } 29 }
32 }, 30 },
33 31
32 // Adding components to the user document by using a async require.
34 addComponentToUserDocument:{ 33 addComponentToUserDocument:{
35 value:function(element, data, callback){ 34 value:function(element, data, callback){
36 35
@@ -42,7 +41,7 @@ exports.Main = Montage.create(Component, {
42 var componentInstance = componentRequire.create(); 41 var componentInstance = componentRequire.create();
43 42
44 componentInstance.element = element; 43 componentInstance.element = element;
45 componentInstance.deserializedFromTemplate(); 44 //componentInstance.deserializedFromTemplate();
46 componentInstance.needsDraw = true; 45 componentInstance.needsDraw = true;
47 46
48 callback(componentInstance, element); 47 callback(componentInstance, element);