diff options
author | Jose Antonio Marquez | 2012-05-24 00:07:23 -0700 |
---|---|---|
committer | Jose Antonio Marquez | 2012-05-24 00:07:23 -0700 |
commit | 5914c5b2209c4b8daac4249bb76cda5c9314c4e6 (patch) | |
tree | f0910e57f64d1638f00bf7f6449d479fb377bfac /js/document/views | |
parent | 16decc5726eafbb25675c61be6df85a378ac1fac (diff) | |
download | ninja-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-x | js/document/views/design.js | 8 |
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 | } |