aboutsummaryrefslogtreecommitdiff
path: root/js/stage
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-06-01 14:54:19 -0700
committerNivesh Rajbhandari2012-06-01 14:54:19 -0700
commitfd264c58bfc5f53f57d9ddfd06114124b14bac04 (patch)
tree41ac230e008fc53ae6a2590258aa5daa4224dca1 /js/stage
parent69ca67093bb53188dca5437e0bfbfb7f676ada85 (diff)
downloadninja-fd264c58bfc5f53f57d9ddfd06114124b14bac04.tar.gz
Moving styles controller higher in ninja's serialization so its bindings will get triggered before stage's bindings. This should fix the stage's styles not getting initialized correctly.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/stage')
-rwxr-xr-xjs/stage/stage.reel/stage.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/js/stage/stage.reel/stage.js b/js/stage/stage.reel/stage.js
index 4d9296a1..d8f7313b 100755
--- a/js/stage/stage.reel/stage.js
+++ b/js/stage/stage.reel/stage.js
@@ -1090,9 +1090,7 @@ exports.Stage = Montage.create(Component, {
1090 1090
1091 this.snapManager._isCacheInvalid = true; 1091 this.snapManager._isCacheInvalid = true;
1092 this.snapManager.currentStage = this.currentDocument.model.documentRoot; 1092 this.snapManager.currentStage = this.currentDocument.model.documentRoot;
1093 //TODO - StylesController needs to initialize the stage's styles prior to calling this. 1093 this.snapManager.setupDragPlaneFromPlane (workingPlane);
1094 // So, moving this into styles-controller.initializeRootStyles code.
1095// this.snapManager.setupDragPlaneFromPlane (workingPlane);
1096 1094
1097 this.drawUtils.initializeFromDocument(); 1095 this.drawUtils.initializeFromDocument();
1098 } 1096 }