diff options
author | Nivesh Rajbhandari | 2012-06-01 14:54:19 -0700 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-06-01 14:54:19 -0700 |
commit | fd264c58bfc5f53f57d9ddfd06114124b14bac04 (patch) | |
tree | 41ac230e008fc53ae6a2590258aa5daa4224dca1 /js/controllers | |
parent | 69ca67093bb53188dca5437e0bfbfb7f676ada85 (diff) | |
download | ninja-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/controllers')
-rwxr-xr-x | js/controllers/styles-controller.js | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/js/controllers/styles-controller.js b/js/controllers/styles-controller.js index 14857bf9..f35a6757 100755 --- a/js/controllers/styles-controller.js +++ b/js/controllers/styles-controller.js | |||
@@ -179,10 +179,6 @@ var stylesController = exports.StylesController = Montage.create(Component, { | |||
179 | this.setStyles(rule, styles); | 179 | this.setStyles(rule, styles); |
180 | this.addClass(this.currentDocument.model.documentRoot, "ninja-body"); | 180 | this.addClass(this.currentDocument.model.documentRoot, "ninja-body"); |
181 | } | 181 | } |
182 | |||
183 | //TODO - Temporarily moving this here so we guarantee the StylesController has a chance | ||
184 | // to initialize the stage's styles prior to doing any styles lookup. | ||
185 | this.application.ninja.stage.snapManager.setupDragPlaneFromPlane (workingPlane); | ||
186 | } | 182 | } |
187 | }, | 183 | }, |
188 | /* ----------------- Rule methods ----------------- */ | 184 | /* ----------------- Rule methods ----------------- */ |