diff options
author | Jose Antonio Marquez | 2012-05-16 14:22:18 -0700 |
---|---|---|
committer | Jose Antonio Marquez | 2012-05-16 14:22:18 -0700 |
commit | ac750fd9b9c311dcd48c6ee309607edc6fa048e1 (patch) | |
tree | 140df1ddaca3db497585198cf47ceb735991da29 /js/document/models | |
parent | 23bf5db97fb24afdb14d02faac1136fc04137e96 (diff) | |
download | ninja-ac750fd9b9c311dcd48c6ee309607edc6fa048e1.tar.gz |
Adding basic montage components I/O
Only for saving basic components without a reel.
Diffstat (limited to 'js/document/models')
-rwxr-xr-x | js/document/models/base.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/js/document/models/base.js b/js/document/models/base.js index 033e16f6..649539ea 100755 --- a/js/document/models/base.js +++ b/js/document/models/base.js | |||
@@ -149,7 +149,8 @@ exports.BaseDocumentModel = Montage.create(Component, { | |||
149 | template: this.fileTemplate, | 149 | template: this.fileTemplate, |
150 | document: this.views.design.iframe.contentWindow.document, | 150 | document: this.views.design.iframe.contentWindow.document, |
151 | head: this.views.design.iframe.contentWindow.document.head, | 151 | head: this.views.design.iframe.contentWindow.document.head, |
152 | body: this.views.design.iframe.contentWindow.document.body | 152 | body: this.views.design.iframe.contentWindow.document.body, |
153 | mjsTemplateCreator: this.views.design.iframe.contentWindow.mjsTemplateCreator | ||
153 | }, callback.bind(this)); | 154 | }, callback.bind(this)); |
154 | } else { | 155 | } else { |
155 | //TODO: Add logic to save code view data | 156 | //TODO: Add logic to save code view data |
@@ -177,7 +178,8 @@ exports.BaseDocumentModel = Montage.create(Component, { | |||
177 | template: this.fileTemplate, | 178 | template: this.fileTemplate, |
178 | document: this.views.design.iframe.contentWindow.document, | 179 | document: this.views.design.iframe.contentWindow.document, |
179 | head: this.views.design.iframe.contentWindow.document.head, | 180 | head: this.views.design.iframe.contentWindow.document.head, |
180 | body: this.views.design.iframe.contentWindow.document.body | 181 | body: this.views.design.iframe.contentWindow.document.body, |
182 | mjsTemplateCreator: this.views.design.iframe.contentWindow.mjsTemplateCreator | ||
181 | }, callback.bind(this)); | 183 | }, callback.bind(this)); |
182 | } else { | 184 | } else { |
183 | //TODO: Add logic to save code view data | 185 | //TODO: Add logic to save code view data |