aboutsummaryrefslogtreecommitdiff
path: root/js/document/views
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-05-24 00:07:23 -0700
committerJose Antonio Marquez2012-05-24 00:07:23 -0700
commit5914c5b2209c4b8daac4249bb76cda5c9314c4e6 (patch)
treef0910e57f64d1638f00bf7f6449d479fb377bfac /js/document/views
parent16decc5726eafbb25675c61be6df85a378ac1fac (diff)
downloadninja-5914c5b2209c4b8daac4249bb76cda5c9314c4e6.tar.gz
Cleaning up referencing to 'documentRoot' and '_document'
Moved to reference new model in DOM architecture rework. This should not affect anything, just moving the references, and also the setting to the render methods in the design view.
Diffstat (limited to 'js/document/views')
-rwxr-xr-xjs/document/views/design.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/document/views/design.js b/js/document/views/design.js
index 6da1b2e4..a69b7a81 100755
--- a/js/document/views/design.js
+++ b/js/document/views/design.js
@@ -257,6 +257,14 @@ exports.DesignDocumentView = Montage.create(BaseDocumentView, {
257 } else { 257 } else {
258 //Else there is not data to parse 258 //Else there is not data to parse
259 } 259 }
260 //TODO: Verify appropiate location for this operation
261 if (this._template && this._template.type === 'banner') {
262 this.model.documentRoot = this.document.body.getElementsByTagName('ninja-content')[0];
263 } else {
264 this.model.documentRoot = this.document.body;
265 }
266 //Initiliazing document model
267 document.application.njUtils.makeElementModel(this.model.documentRoot, "Body", "body");
260 //Makign callback if specified 268 //Makign callback if specified
261 if (this._callback) this._callback(); 269 if (this._callback) this._callback();
262 } 270 }