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/ninja.reel/ninja.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'js/ninja.reel') diff --git a/js/ninja.reel/ninja.js b/js/ninja.reel/ninja.js index 9f1d1b3b..d0eb1557 100755 --- a/js/ninja.reel/ninja.js +++ b/js/ninja.reel/ninja.js @@ -279,8 +279,8 @@ exports.Ninja = Montage.create(Component, { value: function(event) { this.currentDocument = event.detail; - if(this.currentDocument.documentRoot) { - this.currentSelectedContainer = this.currentDocument.documentRoot; + if(this.currentDocument.model.documentRoot) { + this.currentSelectedContainer = this.currentDocument.model.documentRoot; } else { alert("The current document has not loaded yet"); return; @@ -295,8 +295,8 @@ exports.Ninja = Montage.create(Component, { value: function() { this.currentDocument = this.documentController.activeDocument; - if(this.currentDocument.documentRoot) { - this._currentSelectedContainer = this.selectionController._selectionContainer = this.currentDocument.documentRoot; + if(this.currentDocument.model.documentRoot) { + this._currentSelectedContainer = this.selectionController._selectionContainer = this.currentDocument.model.documentRoot; } NJevent("switchDocument"); @@ -320,9 +320,9 @@ exports.Ninja = Montage.create(Component, { } // TODO: Remove marker for old template: NINJA-STAGE-REWORK -// this.currentDocument.documentRoot.elementModel.controller.setProperty(this.currentDocument.documentRoot, "body-background", background); -// this.currentDocument.documentRoot.elementModel.controller.setProperty(this.currentDocument.documentRoot, "overflow", overflow); -// this.currentDocument.documentRoot.elementModel.controller.changeSelector(this.currentDocument.documentRoot, "transitionStopRule", transitionStopRule); +// this.currentDocument.model.documentRoot.elementModel.controller.setProperty(this.currentDocument.model.documentRoot, "body-background", background); +// this.currentDocument.model.documentRoot.elementModel.controller.setProperty(this.currentDocument.model.documentRoot, "overflow", overflow); +// this.currentDocument.model.documentRoot.elementModel.controller.changeSelector(this.currentDocument.model.documentRoot, "transitionStopRule", transitionStopRule); this.application.ninja.stylesController._stageStylesheet.rules[0].selectorText = transitionStopRule; -- cgit v1.2.3