aboutsummaryrefslogtreecommitdiff
path: root/js/stage
diff options
context:
space:
mode:
Diffstat (limited to 'js/stage')
-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;