aboutsummaryrefslogtreecommitdiff
path: root/js/document/models/html.js
diff options
context:
space:
mode:
authorEric Guzman2012-05-25 16:37:24 -0700
committerEric Guzman2012-05-25 16:37:24 -0700
commit1f7c17d688c3340b31d2e1c2b7205b10bd806968 (patch)
treec37508ed332fea9121948c887e7f844f327b2ff3 /js/document/models/html.js
parent1be5495b77c1dd426be3a6be05555254856de6ba (diff)
downloadninja-1f7c17d688c3340b31d2e1c2b7205b10bd806968.tar.gz
Objects Controller - Now keeps track of document's object instances, including added components
Diffstat (limited to 'js/document/models/html.js')
-rwxr-xr-xjs/document/models/html.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/js/document/models/html.js b/js/document/models/html.js
index 9cc8ce92..10112565 100755
--- a/js/document/models/html.js
+++ b/js/document/models/html.js
@@ -69,6 +69,7 @@ exports.HtmlDocumentModel = Montage.create(BaseDocumentModel, {
69 setComponentInstance: { 69 setComponentInstance: {
70 value: function(instance, el) { 70 value: function(instance, el) {
71 this.userComponents[el.uuid] = instance; 71 this.userComponents[el.uuid] = instance;
72 this.objects.push(instance);
72 } 73 }
73 }, 74 },
74 //////////////////////////////////////////////////////////////////// 75 ////////////////////////////////////////////////////////////////////
@@ -81,6 +82,10 @@ exports.HtmlDocumentModel = Montage.create(BaseDocumentModel, {
81 return null; 82 return null;
82 } 83 }
83 } 84 }
85 },
86 ////////////////////////////////////////////////////////////////////
87 objects : {
88 value: null
84 } 89 }
85 //////////////////////////////////////////////////////////////////// 90 ////////////////////////////////////////////////////////////////////
86 //////////////////////////////////////////////////////////////////// 91 ////////////////////////////////////////////////////////////////////