aboutsummaryrefslogtreecommitdiff
path: root/js/stage
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-05-16 15:42:37 -0700
committerJose Antonio Marquez2012-05-16 15:42:37 -0700
commit857aafee732b6a85fa155ff4a05d1b8fde48f09d (patch)
treee06d330caee280aa05aec46391979e9abdcf974c /js/stage
parent5cc5d29736d8bf253e3a168cdd6443e839ffb23c (diff)
parentfd54dabad7cbc27a0efb0957155c00d578912909 (diff)
downloadninja-857aafee732b6a85fa155ff4a05d1b8fde48f09d.tar.gz
Merge branch 'refs/heads/Ninja-DOM-Architecture' into Document
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 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;