diff options
author | Valerio Virgillito | 2012-05-29 23:52:59 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-05-29 23:52:59 -0700 |
commit | d8840eda0d3b3e31fb5a72306fe66608f4f99c2b (patch) | |
tree | b95ee9919673fef42980ac58d11bd3f1bcb6b6af /js/stage | |
parent | 5d7dff15e1e603e3b37057b9843e4b1eef1b2dca (diff) | |
download | ninja-d8840eda0d3b3e31fb5a72306fe66608f4f99c2b.tar.gz |
fixing the menu bindings and some cleanup of the stage
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/stage')
-rwxr-xr-x | js/stage/stage.reel/stage.js | 9 |
1 files changed, 2 insertions, 7 deletions
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, { | |||
156 | }, | 156 | }, |
157 | 157 | ||
158 | _currentDocument: { | 158 | _currentDocument: { |
159 | value : null, | 159 | value : null |
160 | enumerable : false | ||
161 | }, | 160 | }, |
162 | 161 | ||
163 | currentDocument : { | 162 | currentDocument : { |
@@ -176,7 +175,6 @@ exports.Stage = Montage.create(Component, { | |||
176 | this.hideCanvas(false); | 175 | this.hideCanvas(false); |
177 | } | 176 | } |
178 | 177 | ||
179 | //console.log("Stage - set current document with value of " + value); | ||
180 | this._currentDocument = value; | 178 | this._currentDocument = value; |
181 | 179 | ||
182 | if(this._currentDocument.currentView === "design") { | 180 | if(this._currentDocument.currentView === "design") { |
@@ -188,8 +186,7 @@ exports.Stage = Montage.create(Component, { | |||
188 | this.hideRulers(); | 186 | this.hideRulers(); |
189 | this.hideCanvas(true); | 187 | this.hideCanvas(true); |
190 | } | 188 | } |
191 | }, | 189 | } |
192 | enumerable : false | ||
193 | }, | 190 | }, |
194 | 191 | ||
195 | _userPaddingLeft: { value: 0 }, | 192 | _userPaddingLeft: { value: 0 }, |
@@ -287,8 +284,6 @@ exports.Stage = Montage.create(Component, { | |||
287 | value: function(didSwitch) { | 284 | value: function(didSwitch) { |
288 | var designView = this.application.ninja.currentDocument.model.views.design; | 285 | var designView = this.application.ninja.currentDocument.model.views.design; |
289 | 286 | ||
290 | this.hideCanvas(false); | ||
291 | |||
292 | // Recalculate the canvas sizes because of splitter resizing | 287 | // Recalculate the canvas sizes because of splitter resizing |
293 | this._canvas.width = this._layoutCanvas.width = this._drawingCanvas.width = this.element.offsetWidth - 11 ; | 288 | this._canvas.width = this._layoutCanvas.width = this._drawingCanvas.width = this.element.offsetWidth - 11 ; |
294 | this._canvas.height = this._layoutCanvas.height = this._drawingCanvas.height = this.element.offsetHeight - 11; | 289 | this._canvas.height = this._layoutCanvas.height = this._drawingCanvas.height = this.element.offsetHeight - 11; |