aboutsummaryrefslogtreecommitdiff
path: root/js/ninja.reel/ninja.js
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-05-24 13:54:00 -0700
committerNivesh Rajbhandari2012-05-24 13:54:00 -0700
commitfd4af6d81725dfa0630ac5e52ba95405336f4074 (patch)
tree868197f79862e98b9c7f5a1f296d64832c68d48f /js/ninja.reel/ninja.js
parentde25d2b7d05476d4f0d385b5e910db189f682d21 (diff)
parent70ff8dd670bc37c14caf850e06791d1e293b1e4b (diff)
downloadninja-fd4af6d81725dfa0630ac5e52ba95405336f4074.tar.gz
Merge branch 'refs/heads/dom-architecture-master' into Dom-Architecture
Diffstat (limited to 'js/ninja.reel/ninja.js')
-rwxr-xr-xjs/ninja.reel/ninja.js14
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