From 1f7c17d688c3340b31d2e1c2b7205b10bd806968 Mon Sep 17 00:00:00 2001 From: Eric Guzman Date: Fri, 25 May 2012 16:37:24 -0700 Subject: Objects Controller - Now keeps track of document's object instances, including added components --- js/document/templates/app/main.js | 1 + 1 file changed, 1 insertion(+) (limited to 'js/document/templates/app/main.js') diff --git a/js/document/templates/app/main.js b/js/document/templates/app/main.js index a406abdb..91c46fda 100644 --- a/js/document/templates/app/main.js +++ b/js/document/templates/app/main.js @@ -29,6 +29,7 @@ exports.Main = Montage.create(Component, { var componentRequire = component[data.name]; var componentInstance = componentRequire.create(); + componentInstance._montage_metadata.label = data.name; componentInstance.element = element; componentInstance.needsDraw = true; -- cgit v1.2.3 From 47d45e16bee15fd9f1f793a0bad3b93ad1b985fc Mon Sep 17 00:00:00 2001 From: Eric Guzman Date: Mon, 11 Jun 2012 07:19:19 -0700 Subject: Edit View - Add buttons and calls controller (saves bindings) --- js/document/templates/app/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/document/templates/app/main.js') diff --git a/js/document/templates/app/main.js b/js/document/templates/app/main.js index 91c46fda..e2bdc1a0 100644 --- a/js/document/templates/app/main.js +++ b/js/document/templates/app/main.js @@ -29,7 +29,7 @@ exports.Main = Montage.create(Component, { var componentRequire = component[data.name]; var componentInstance = componentRequire.create(); - componentInstance._montage_metadata.label = data.name; + componentInstance._montage_metadata.label = componentInstance.identifier = data.name; componentInstance.element = element; componentInstance.needsDraw = true; -- cgit v1.2.3 From b73e0aa2cffa3ffd2b574645f6ec88dc34726caa Mon Sep 17 00:00:00 2001 From: Armen Kesablyan Date: Mon, 25 Jun 2012 14:05:38 -0700 Subject: Can bind Multiple instance Signed-off-by: Armen Kesablyan --- js/document/templates/app/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/document/templates/app/main.js') diff --git a/js/document/templates/app/main.js b/js/document/templates/app/main.js index 7737ae4c..0da1b87e 100644 --- a/js/document/templates/app/main.js +++ b/js/document/templates/app/main.js @@ -61,7 +61,7 @@ exports.Main = Montage.create(Component, { var componentRequire = component[data.name]; var componentInstance = componentRequire.create(); - componentInstance._montage_metadata.label = componentInstance.identifier = data.name; + componentInstance.identifier = data.identifier; componentInstance.addEventListener("firstDraw", self, false); componentInstance.element = element; -- cgit v1.2.3