diff options
author | Eric Guzman | 2012-05-29 15:29:11 -0700 |
---|---|---|
committer | Eric Guzman | 2012-05-29 15:29:11 -0700 |
commit | 25ac55c285bb4850118c644dc57adaeda5b9a859 (patch) | |
tree | b645941d7916716cbaf4860355df4101fc0f4c3c /js/ninja.reel | |
parent | 1fda3cea5f8dced1e14533969722e30b8ea1e6fa (diff) | |
parent | 58e454c828abf0b64fa62120359bcd78a0d34ac4 (diff) | |
download | ninja-25ac55c285bb4850118c644dc57adaeda5b9a859.tar.gz |
Merge branch 'dom-architecture' of github.com:Motorola-Mobility/ninja-internal into CSSPanelUpdates
Diffstat (limited to 'js/ninja.reel')
-rwxr-xr-x | js/ninja.reel/ninja.js | 14 |
1 files changed, 7 insertions, 7 deletions
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, { | |||
279 | value: function(event) { | 279 | value: function(event) { |
280 | this.currentDocument = event.detail; | 280 | this.currentDocument = event.detail; |
281 | 281 | ||
282 | if(this.currentDocument.documentRoot) { | 282 | if(this.currentDocument.model.documentRoot) { |
283 | this.currentSelectedContainer = this.currentDocument.documentRoot; | 283 | this.currentSelectedContainer = this.currentDocument.model.documentRoot; |
284 | } else { | 284 | } else { |
285 | alert("The current document has not loaded yet"); | 285 | alert("The current document has not loaded yet"); |
286 | return; | 286 | return; |
@@ -295,8 +295,8 @@ exports.Ninja = Montage.create(Component, { | |||
295 | value: function() { | 295 | value: function() { |
296 | this.currentDocument = this.documentController.activeDocument; | 296 | this.currentDocument = this.documentController.activeDocument; |
297 | 297 | ||
298 | if(this.currentDocument.documentRoot) { | 298 | if(this.currentDocument.model.documentRoot) { |
299 | this._currentSelectedContainer = this.selectionController._selectionContainer = this.currentDocument.documentRoot; | 299 | this._currentSelectedContainer = this.selectionController._selectionContainer = this.currentDocument.model.documentRoot; |
300 | } | 300 | } |
301 | 301 | ||
302 | NJevent("switchDocument"); | 302 | NJevent("switchDocument"); |
@@ -320,9 +320,9 @@ exports.Ninja = Montage.create(Component, { | |||
320 | } | 320 | } |
321 | 321 | ||
322 | // TODO: Remove marker for old template: NINJA-STAGE-REWORK | 322 | // TODO: Remove marker for old template: NINJA-STAGE-REWORK |
323 | // this.currentDocument.documentRoot.elementModel.controller.setProperty(this.currentDocument.documentRoot, "body-background", background); | 323 | // this.currentDocument.model.documentRoot.elementModel.controller.setProperty(this.currentDocument.model.documentRoot, "body-background", background); |
324 | // this.currentDocument.documentRoot.elementModel.controller.setProperty(this.currentDocument.documentRoot, "overflow", overflow); | 324 | // this.currentDocument.model.documentRoot.elementModel.controller.setProperty(this.currentDocument.model.documentRoot, "overflow", overflow); |
325 | // this.currentDocument.documentRoot.elementModel.controller.changeSelector(this.currentDocument.documentRoot, "transitionStopRule", transitionStopRule); | 325 | // this.currentDocument.model.documentRoot.elementModel.controller.changeSelector(this.currentDocument.model.documentRoot, "transitionStopRule", transitionStopRule); |
326 | 326 | ||
327 | this.application.ninja.stylesController._stageStylesheet.rules[0].selectorText = transitionStopRule; | 327 | this.application.ninja.stylesController._stageStylesheet.rules[0].selectorText = transitionStopRule; |
328 | 328 | ||