aboutsummaryrefslogtreecommitdiff
path: root/js/stage/stage.reel
diff options
context:
space:
mode:
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 125155d8..93270561 100755
--- a/js/stage/stage.reel/stage.js
+++ b/js/stage/stage.reel/stage.js
@@ -300,7 +300,7 @@ exports.Stage = Montage.create(Component, {
300 // TODO - We will need to modify this once we support switching between multiple documents 300 // TODO - We will need to modify this once we support switching between multiple documents
301 this.application.ninja.toolsData.selectedToolInstance._configure(true); 301 this.application.ninja.toolsData.selectedToolInstance._configure(true);
302 302
303 this.addEventListener("change@appModel.show3dGrid", this, false); 303 this.addPropertyChangeListener("appModel.show3dGrid", this, false);
304 304
305 this.layout.handleOpenDocument(); 305 this.layout.handleOpenDocument();
306 } 306 }
@@ -309,10 +309,9 @@ exports.Stage = Montage.create(Component, {
309 /** 309 /**
310 * Event handler for the change @ 3DGrid 310 * Event handler for the change @ 3DGrid
311 */ 311 */
312 handleEvent: { 312 handleChange: {
313 value: function(e) { 313 value: function(notification) {
314 if(e.type === "change@appModel.show3dGrid") { 314 if("appModel.show3dGrid" === notification.currentPropertyPath) {
315
316 if(this.appModel.show3dGrid) { 315 if(this.appModel.show3dGrid) {
317 316
318 drawUtils.drawXY = true; 317 drawUtils.drawXY = true;