From 6403ec6d21048c93138ddcbcc59fc4677121ed5e Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Thu, 19 Jul 2012 15:53:54 -0700 Subject: Timeline: updated livePreview to timeline play. Hide canvas and draw red outline - Changed the play button to a toggle button - livePreview code in stage activated via bindings - Draw a red outline of the canvas when in play Signed-off-by: Valerio Virgillito --- js/mediators/keyboard-mediator.js | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'js/mediators') diff --git a/js/mediators/keyboard-mediator.js b/js/mediators/keyboard-mediator.js index f71356b6..a323b9c3 100755 --- a/js/mediators/keyboard-mediator.js +++ b/js/mediators/keyboard-mediator.js @@ -98,20 +98,6 @@ exports.KeyboardMediator = Montage.create(Component, { value: function() { document.addEventListener("keydown", this, false); document.addEventListener("keyup", this, false); - - this.addPropertyChangeListener("appModel.livePreview", this.handleLivePreview, false); - } - }, - - handleLivePreview: { - value: function() { - if(this.appModel.livePreview) { - document.removeEventListener("keydown", this, false); - document.removeEventListener("keyup", this, false); - } else { - document.addEventListener("keydown", this, false); - document.addEventListener("keyup", this, false); - } } }, -- cgit v1.2.3