From 69f0dbbe2ebbbc8d7fa89afe1a7078d0fe206be9 Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Tue, 14 Feb 2012 15:53:08 -0800 Subject: Adding all the components to the panel Signed-off-by: Valerio Virgillito --- user-document-templates/montage-application-cloud/main.reel/main.js | 1 + 1 file changed, 1 insertion(+) (limited to 'user-document-templates/montage-application-cloud') 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..0c61b1af 100644 --- a/user-document-templates/montage-application-cloud/main.reel/main.js +++ b/user-document-templates/montage-application-cloud/main.reel/main.js @@ -31,6 +31,7 @@ exports.Main = Montage.create(Component, { } }, + // Adding components to the user document by using a async require. addComponentToUserDocument:{ value:function(element, data, callback){ -- cgit v1.2.3 From f7887aefa96f33a71189e75197e1bc87252226fb Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Thu, 16 Feb 2012 22:32:43 -0800 Subject: Fixing the component loading error. Removing the deserializedFromTemplate which was causing the component not to load. Signed-off-by: Valerio Virgillito --- user-document-templates/montage-application-cloud/main.reel/main.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'user-document-templates/montage-application-cloud') 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 0c61b1af..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 @@ var Montage = require("montage/core/core").Montage, Component = require("montage/ui/component").Component; -//var Button = ("montage/ui/button.reel").Button; - exports.Main = Montage.create(Component, { hasTemplate: { @@ -43,7 +41,7 @@ exports.Main = Montage.create(Component, { var componentInstance = componentRequire.create(); componentInstance.element = element; - componentInstance.deserializedFromTemplate(); + //componentInstance.deserializedFromTemplate(); componentInstance.needsDraw = true; callback(componentInstance, element); -- cgit v1.2.3