diff options
author | Valerio Virgillito | 2012-05-18 01:36:05 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-05-18 01:36:05 -0700 |
commit | 24d1873302b2fffc25d254e15e8aa36f59eedb88 (patch) | |
tree | 29658da7910ff5bd5709ccebd758a9d46ee2ff4f /js/stage/stage.reel/stage.js | |
parent | e9dddef38507cafcf5702ce6a512b4005609acef (diff) | |
download | ninja-24d1873302b2fffc25d254e15e8aa36f59eedb88.tar.gz |
fixed a switch documents bug where the layout was getting called before setting the container.
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/stage/stage.reel/stage.js')
-rwxr-xr-x | js/stage/stage.reel/stage.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/js/stage/stage.reel/stage.js b/js/stage/stage.reel/stage.js index cac99326..8da89fb9 100755 --- a/js/stage/stage.reel/stage.js +++ b/js/stage/stage.reel/stage.js | |||
@@ -593,6 +593,14 @@ exports.Stage = Montage.create(Component, { | |||
593 | } | 593 | } |
594 | }, | 594 | }, |
595 | 595 | ||
596 | clearAllCanvas: { | ||
597 | value: function() { | ||
598 | this._drawingContext.clearRect(0, 0, this._drawingCanvas.width, this._drawingCanvas.height); | ||
599 | this.context.clearRect(0, 0, this.canvas.width, this.canvas.height); | ||
600 | this.layout.clearCanvas(); | ||
601 | } | ||
602 | }, | ||
603 | |||
596 | SelectTool: { | 604 | SelectTool: { |
597 | value: function(cursor) { | 605 | value: function(cursor) { |
598 | this._drawingCanvas.style.cursor = cursor; | 606 | this._drawingCanvas.style.cursor = cursor; |