aboutsummaryrefslogtreecommitdiff
path: root/js/stage
diff options
context:
space:
mode:
authorValerio Virgillito2012-05-18 01:36:05 -0700
committerValerio Virgillito2012-05-18 01:36:05 -0700
commit24d1873302b2fffc25d254e15e8aa36f59eedb88 (patch)
tree29658da7910ff5bd5709ccebd758a9d46ee2ff4f /js/stage
parente9dddef38507cafcf5702ce6a512b4005609acef (diff)
downloadninja-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')
-rwxr-xr-xjs/stage/stage.reel/stage.js8
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;