aboutsummaryrefslogtreecommitdiff
path: root/js/tools/FillTool.js
diff options
context:
space:
mode:
authorhwc4872012-07-09 16:08:02 -0700
committerhwc4872012-07-09 16:08:02 -0700
commit5085d0f67df89a21715308956004164597a6ba79 (patch)
tree2c896163143a66331205a39b0a3b1b45d51bf12a /js/tools/FillTool.js
parent51f1691f792dbda9b740ded8aa0457c9406db156 (diff)
parent84b3327bd92faafab7954b5eb64c7abe24a3fe13 (diff)
downloadninja-5085d0f67df89a21715308956004164597a6ba79.tar.gz
Merge branch 'master' of github.com:Motorola-Mobility/ninja-internal into GridFixes
Conflicts: js/helper-classes/3D/StageLine.js
Diffstat (limited to 'js/tools/FillTool.js')
-rwxr-xr-xjs/tools/FillTool.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/js/tools/FillTool.js b/js/tools/FillTool.js
index d779c655..b6f244e1 100755
--- a/js/tools/FillTool.js
+++ b/js/tools/FillTool.js
@@ -40,13 +40,13 @@ var Montage = require("montage/core/core").Montage,
40 ShapesController = require("js/controllers/elements/shapes-controller").ShapesController; 40 ShapesController = require("js/controllers/elements/shapes-controller").ShapesController;
41 41
42exports.FillTool = Montage.create(ModifierToolBase, { 42exports.FillTool = Montage.create(ModifierToolBase, {
43 _canSnap: { value: false }, 43 _canSnap: { value: false },
44 _canColor: { value: true }, 44 _canColor: { value: true },
45 _targetedElement: { value: null }, 45 _targetedElement: { value: null },
46 46
47 HandleMouseMove: { 47 HandleMouseMove: {
48 value : function (event) 48 value : function (event)
49 { 49 {
50 var obj = this.application.ninja.stage.getElement(event, true); 50 var obj = this.application.ninja.stage.getElement(event, true);
51 var cursor = "url('images/cursors/fill.png') 14 14, default"; 51 var cursor = "url('images/cursors/fill.png') 14 14, default";
52 var canColor = true; 52 var canColor = true;
@@ -78,13 +78,13 @@ exports.FillTool = Montage.create(ModifierToolBase, {
78 } 78 }
79 this.application.ninja.stage.drawingCanvas.style.cursor = cursor; 79 this.application.ninja.stage.drawingCanvas.style.cursor = cursor;
80 this._canColor = canColor; 80 this._canColor = canColor;
81 } 81 }
82 }, 82 },
83 83
84 HandleLeftButtonUp: { 84 HandleLeftButtonUp: {
85 value : function () { 85 value : function () {
86 //if(this._isDrawing) 86 //if(this._isDrawing)
87 { 87 {
88 this.application.ninja.stage.clearDrawingCanvas(); 88 this.application.ninja.stage.clearDrawingCanvas();
89 this._hasDraw = false; 89 this._hasDraw = false;
90 this._isDrawing = false; 90 this._isDrawing = false;