aboutsummaryrefslogtreecommitdiff
path: root/js/document/models
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-05-09 16:28:13 -0700
committerJose Antonio Marquez2012-05-09 16:28:13 -0700
commit3811f72f8cd8caaa2d13fa695b918f25facb85c5 (patch)
tree4198a41aacf42d16d2d0c75574c98d4ec299390e /js/document/models
parent258f006074616f1c654125059e73d94752afb896 (diff)
downloadninja-3811f72f8cd8caaa2d13fa695b918f25facb85c5.tar.gz
Preliminary Montage Template Cleanup
The template creator is currently not returning serializing code, but does clean the document. Need to investigate reason why, currently all components are removed on save.
Diffstat (limited to 'js/document/models')
-rwxr-xr-xjs/document/models/html.js25
1 files changed, 13 insertions, 12 deletions
diff --git a/js/document/models/html.js b/js/document/models/html.js
index 2764a6d6..b57ff832 100755
--- a/js/document/models/html.js
+++ b/js/document/models/html.js
@@ -24,28 +24,28 @@ exports.HtmlDocumentModel = Montage.create(BaseDocumentModel, {
24 }, 24 },
25 //////////////////////////////////////////////////////////////////// 25 ////////////////////////////////////////////////////////////////////
26 // 26 //
27 baseHref: {
28 value: null
29 },
30 ////////////////////////////////////////////////////////////////////
31 //
27 webGlHelper: { 32 webGlHelper: {
28 value: webGlDocumentHelper 33 value: webGlDocumentHelper
29 }, 34 },
30 //////////////////////////////////////////////////////////////////// 35 ////////////////////////////////////////////////////////////////////
31 //////////////////////////////////////////////////////////////////// 36 //
32 userComponents: { 37 userComponents: {
33 value: {} 38 value: {}
34 }, 39 },
35 40 ////////////////////////////////////////////////////////////////////
36 /** 41 //Add a reference to a component instance to the userComponents hash using the element UUID
37 * Add a reference to a component instance to the userComponents hash using the
38 * element UUID
39 */
40 setComponentInstance: { 42 setComponentInstance: {
41 value: function(instance, el) { 43 value: function(instance, el) {
42 this.userComponents[el.uuid] = instance; 44 this.userComponents[el.uuid] = instance;
43 } 45 }
44 }, 46 },
45 47 ////////////////////////////////////////////////////////////////////
46 /** 48 //Returns the component instance obj from the element
47 * Returns the component instance obj from the element
48 */
49 getComponentFromElement: { 49 getComponentFromElement: {
50 value: function(el) { 50 value: function(el) {
51 if(el) { 51 if(el) {
@@ -55,7 +55,8 @@ exports.HtmlDocumentModel = Montage.create(BaseDocumentModel, {
55 } 55 }
56 } 56 }
57 } 57 }
58 58 ////////////////////////////////////////////////////////////////////
59 ////////////////////////////////////////////////////////////////////
59}); 60});
60//////////////////////////////////////////////////////////////////////// 61////////////////////////////////////////////////////////////////////////
61//////////////////////////////////////////////////////////////////////// \ No newline at end of file 62//////////////////////////////////////////////////////////////////////// \ No newline at end of file