diff options
author | Jose Antonio Marquez | 2012-06-07 11:28:25 -0700 |
---|---|---|
committer | Jose Antonio Marquez | 2012-06-07 11:28:25 -0700 |
commit | 7d1a564a8fd246c621f674b5521554fbfc058281 (patch) | |
tree | d1be340a099e318db8113b651ba45c3d4c00f3a5 /js/document/models | |
parent | 0efbbf8287517b755be1774f6aa49947bed50a0d (diff) | |
parent | b75fe9369f7caec0351d298f7106c8d59572b440 (diff) | |
download | ninja-7d1a564a8fd246c621f674b5521554fbfc058281.tar.gz |
Merge branch 'refs/heads/Ninja-Internal' into FileIO
Diffstat (limited to 'js/document/models')
-rwxr-xr-x | js/document/models/html.js | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/js/document/models/html.js b/js/document/models/html.js index 0f88229d..6bdc6546 100755 --- a/js/document/models/html.js +++ b/js/document/models/html.js | |||
@@ -73,29 +73,6 @@ exports.HtmlDocumentModel = Montage.create(BaseDocumentModel, { | |||
73 | value: null | 73 | value: null |
74 | }, | 74 | }, |
75 | //////////////////////////////////////////////////////////////////// | 75 | //////////////////////////////////////////////////////////////////// |
76 | // | ||
77 | userComponents: { | ||
78 | value: {} | ||
79 | }, | ||
80 | //////////////////////////////////////////////////////////////////// | ||
81 | //Add a reference to a component instance to the userComponents hash using the element UUID | ||
82 | setComponentInstance: { | ||
83 | value: function(instance, el) { | ||
84 | this.userComponents[el.uuid] = instance; | ||
85 | } | ||
86 | }, | ||
87 | //////////////////////////////////////////////////////////////////// | ||
88 | //Returns the component instance obj from the element | ||
89 | getComponentFromElement: { | ||
90 | value: function(el) { | ||
91 | if(el) { | ||
92 | if(el.uuid) return this.userComponents[el.uuid]; | ||
93 | } else { | ||
94 | return null; | ||
95 | } | ||
96 | } | ||
97 | } | ||
98 | //////////////////////////////////////////////////////////////////// | ||
99 | //////////////////////////////////////////////////////////////////// | 76 | //////////////////////////////////////////////////////////////////// |
100 | }); | 77 | }); |
101 | //////////////////////////////////////////////////////////////////////// | 78 | //////////////////////////////////////////////////////////////////////// |