From 5914c5b2209c4b8daac4249bb76cda5c9314c4e6 Mon Sep 17 00:00:00 2001 From: Jose Antonio Marquez Date: Thu, 24 May 2012 00:07:23 -0700 Subject: 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. --- js/document/views/design.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'js/document/views/design.js') 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, { } else { //Else there is not data to parse } + //TODO: Verify appropiate location for this operation + if (this._template && this._template.type === 'banner') { + this.model.documentRoot = this.document.body.getElementsByTagName('ninja-content')[0]; + } else { + this.model.documentRoot = this.document.body; + } + //Initiliazing document model + document.application.njUtils.makeElementModel(this.model.documentRoot, "Body", "body"); //Makign callback if specified if (this._callback) this._callback(); } -- cgit v1.2.3