aboutsummaryrefslogtreecommitdiff
path: root/js/document/models/html.js
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-06-06 13:46:02 -0700
committerJose Antonio Marquez2012-06-06 13:46:02 -0700
commit6a0f150f49be656e0725bc77b452a3141dddd47c (patch)
tree4d9d946c73c138ce5d6bca04872d7fe9385f4093 /js/document/models/html.js
parent18e212dca48066d1ddaca96875a3f40adcc859b6 (diff)
downloadninja-6a0f150f49be656e0725bc77b452a3141dddd47c.tar.gz
Cleaning up
Removed reference of model in design view, clean up slightly, need to implement binding later.
Diffstat (limited to 'js/document/models/html.js')
-rwxr-xr-xjs/document/models/html.js25
1 files changed, 15 insertions, 10 deletions
diff --git a/js/document/models/html.js b/js/document/models/html.js
index 9aa0d27e..0f88229d 100755
--- a/js/document/models/html.js
+++ b/js/document/models/html.js
@@ -40,22 +40,32 @@ exports.HtmlDocumentModel = Montage.create(BaseDocumentModel, {
40 scrollLeft: { 40 scrollLeft: {
41 value: null 41 value: null
42 }, 42 },
43 43 ////////////////////////////////////////////////////////////////////
44 //
44 scrollTop: { 45 scrollTop: {
45 value: null 46 value: null
46 }, 47 },
47 48 ////////////////////////////////////////////////////////////////////
49 //
48 userContentLeft: { 50 userContentLeft: {
49 value: null 51 value: null
50 }, 52 },
51 53 ////////////////////////////////////////////////////////////////////
54 //
52 userContentTop: { 55 userContentTop: {
53 value: null 56 value: null
54 }, 57 },
55 //////////////////////////////////////////////////////////////////// 58 ////////////////////////////////////////////////////////////////////
56 // 59 //TODO: Convert to bindings
60 documentRoot: {
61 get: function() {return this.views.design._documentRoot;},
62 set: function(value) {this.views.design._documentRoot = value;}
63 },
64 ////////////////////////////////////////////////////////////////////
65 //TODO: Convert to bindings
57 baseHref: { 66 baseHref: {
58 value: null 67 get: function() {return this.views.design._baseHref;},
68 set: function(value) {this.views.design._baseHref = value;}
59 }, 69 },
60 //////////////////////////////////////////////////////////////////// 70 ////////////////////////////////////////////////////////////////////
61 // 71 //
@@ -67,11 +77,6 @@ exports.HtmlDocumentModel = Montage.create(BaseDocumentModel, {
67 userComponents: { 77 userComponents: {
68 value: {} 78 value: {}
69 }, 79 },
70 ////////////////////////////////////////////////////////////////////
71 //
72 documentRoot: {
73 value: null
74 },
75 //////////////////////////////////////////////////////////////////// 80 ////////////////////////////////////////////////////////////////////
76 //Add a reference to a component instance to the userComponents hash using the element UUID 81 //Add a reference to a component instance to the userComponents hash using the element UUID
77 setComponentInstance: { 82 setComponentInstance: {