aboutsummaryrefslogtreecommitdiff
path: root/js/stage/stage.reel
diff options
context:
space:
mode:
authorValerio Virgillito2012-05-16 15:32:36 -0700
committerValerio Virgillito2012-05-16 15:32:36 -0700
commitfd54dabad7cbc27a0efb0957155c00d578912909 (patch)
treeb38e0a4bca414a762ea79b97213d48b7fddfac30 /js/stage/stage.reel
parent13ae16997d4bbca14e255d5989d1c44a76eac72c (diff)
downloadninja-fd54dabad7cbc27a0efb0957155c00d578912909.tar.gz
changing @change to propertyChangeListener
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
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;