aboutsummaryrefslogtreecommitdiff
path: root/js/stage/stage.reel
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-05-16 15:57:19 -0700
committerNivesh Rajbhandari2012-05-16 15:57:19 -0700
commit95069173e145691b0059f2dcbbaa7332694ed778 (patch)
tree2158ede11ccbc2eb3a12f0b2f3c0233f0ece0a30 /js/stage/stage.reel
parent727ad95f6828821f0682aa98104783e4bbda78b4 (diff)
parentfd54dabad7cbc27a0efb0957155c00d578912909 (diff)
downloadninja-95069173e145691b0059f2dcbbaa7332694ed778.tar.gz
Merge branch 'refs/heads/dom-architecture-master' into Dom-Architecture
Diffstat (limited to 'js/stage/stage.reel')
-rwxr-xr-xjs/stage/stage.reel/stage.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/js/stage/stage.reel/stage.js b/js/stage/stage.reel/stage.js
index 28356d1a..cac99326 100755
--- a/js/stage/stage.reel/stage.js
+++ b/js/stage/stage.reel/stage.js
@@ -331,7 +331,7 @@ exports.Stage = Montage.create(Component, {
331 // TODO - We will need to modify this once we support switching between multiple documents 331 // TODO - We will need to modify this once we support switching between multiple documents
332 this.application.ninja.toolsData.selectedToolInstance._configure(true); 332 this.application.ninja.toolsData.selectedToolInstance._configure(true);
333 333
334 this.addEventListener("change@appModel.show3dGrid", this, false); 334 this.addPropertyChangeListener("appModel.show3dGrid", this, false);
335 335
336 this.layout.handleOpenDocument(); 336 this.layout.handleOpenDocument();
337 } 337 }
@@ -340,10 +340,9 @@ exports.Stage = Montage.create(Component, {
340 /** 340 /**
341 * Event handler for the change @ 3DGrid 341 * Event handler for the change @ 3DGrid
342 */ 342 */
343 handleEvent: { 343 handleChange: {
344 value: function(e) { 344 value: function(notification) {
345 if(e.type === "change@appModel.show3dGrid") { 345 if("appModel.show3dGrid" === notification.currentPropertyPath) {
346
347 if(this.appModel.show3dGrid) { 346 if(this.appModel.show3dGrid) {
348 347
349 drawUtils.drawXY = true; 348 drawUtils.drawXY = true;