From d8840eda0d3b3e31fb5a72306fe66608f4f99c2b Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Tue, 29 May 2012 23:52:59 -0700 Subject: fixing the menu bindings and some cleanup of the stage Signed-off-by: Valerio Virgillito --- js/stage/stage.reel/stage.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'js/stage') diff --git a/js/stage/stage.reel/stage.js b/js/stage/stage.reel/stage.js index a6e7c24f..82c4d652 100755 --- a/js/stage/stage.reel/stage.js +++ b/js/stage/stage.reel/stage.js @@ -156,8 +156,7 @@ exports.Stage = Montage.create(Component, { }, _currentDocument: { - value : null, - enumerable : false + value : null }, currentDocument : { @@ -176,7 +175,6 @@ exports.Stage = Montage.create(Component, { this.hideCanvas(false); } - //console.log("Stage - set current document with value of " + value); this._currentDocument = value; if(this._currentDocument.currentView === "design") { @@ -188,8 +186,7 @@ exports.Stage = Montage.create(Component, { this.hideRulers(); this.hideCanvas(true); } - }, - enumerable : false + } }, _userPaddingLeft: { value: 0 }, @@ -287,8 +284,6 @@ exports.Stage = Montage.create(Component, { value: function(didSwitch) { var designView = this.application.ninja.currentDocument.model.views.design; - this.hideCanvas(false); - // Recalculate the canvas sizes because of splitter resizing this._canvas.width = this._layoutCanvas.width = this._drawingCanvas.width = this.element.offsetWidth - 11 ; this._canvas.height = this._layoutCanvas.height = this._drawingCanvas.height = this.element.offsetHeight - 11; -- cgit v1.2.3