diff options
author | Nivesh Rajbhandari | 2012-05-16 15:57:19 -0700 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-05-16 15:57:19 -0700 |
commit | 95069173e145691b0059f2dcbbaa7332694ed778 (patch) | |
tree | 2158ede11ccbc2eb3a12f0b2f3c0233f0ece0a30 /js/stage | |
parent | 727ad95f6828821f0682aa98104783e4bbda78b4 (diff) | |
parent | fd54dabad7cbc27a0efb0957155c00d578912909 (diff) | |
download | ninja-95069173e145691b0059f2dcbbaa7332694ed778.tar.gz |
Merge branch 'refs/heads/dom-architecture-master' into Dom-Architecture
Diffstat (limited to 'js/stage')
-rwxr-xr-x | js/stage/stage.reel/stage.js | 9 |
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; |