diff options
author | Valerio Virgillito | 2012-04-26 15:33:48 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-04-26 15:33:48 -0700 |
commit | 238586be0df568c6804268d97bf9d3ef7cd33fda (patch) | |
tree | 582041d53a3d91ac50771849f3e4e26c85d69b81 /js/tools/ShapeTool.js | |
parent | 01e17da83667b6ad808721687b2dd9b67f1812e6 (diff) | |
download | ninja-238586be0df568c6804268d97bf9d3ef7cd33fda.tar.gz |
Simplifying the getElement method from stage and adding an exclusion list to the new template
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/tools/ShapeTool.js')
-rwxr-xr-x | js/tools/ShapeTool.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/tools/ShapeTool.js b/js/tools/ShapeTool.js index f3b5e92d..21a5a025 100755 --- a/js/tools/ShapeTool.js +++ b/js/tools/ShapeTool.js | |||
@@ -138,7 +138,7 @@ exports.ShapeTool = Montage.create(DrawingTool, { | |||
138 | _showFeedbackOnMouseMove: { | 138 | _showFeedbackOnMouseMove: { |
139 | value: function (event) { | 139 | value: function (event) { |
140 | // TODO - This call is causing the canvas to redraw 3 times per mouse move | 140 | // TODO - This call is causing the canvas to redraw 3 times per mouse move |
141 | var targetedObject = this.application.ninja.stage.GetSelectableElement(event); | 141 | var targetedObject = this.application.ninja.stage.getElement(event, true); |
142 | 142 | ||
143 | if (targetedObject) { | 143 | if (targetedObject) { |
144 | if((targetedObject.nodeName === "CANVAS") && !ShapesController.isElementAShape(targetedObject)) | 144 | if((targetedObject.nodeName === "CANVAS") && !ShapesController.isElementAShape(targetedObject)) |