diff options
author | Armen Kesablyan | 2012-06-19 01:03:59 -0700 |
---|---|---|
committer | Armen Kesablyan | 2012-06-19 01:03:59 -0700 |
commit | 2e13a73e4ee980a6f73f6ff48b2a195eb209a7db (patch) | |
tree | d352f5e769eae0e1b7b76ccbeafa9b174b1a9918 /js/tools/ShapeTool.js | |
parent | 244e608645778746d1a3b5aa0d4c0868f7c5c272 (diff) | |
parent | c59eb371559a3061ce53223e249ca97daace5968 (diff) | |
download | ninja-2e13a73e4ee980a6f73f6ff48b2a195eb209a7db.tar.gz |
Merge branch 'refs/heads/master' into binding
Conflicts:
js/components/layout/tools-list.reel/tools-list.html
js/components/layout/tools-properties.reel/tools-properties.html
js/document/document-html.js
js/document/templates/app/main.js
js/panels/Panel.reel/Panel.js
node_modules/montage/ui/native-control.js
Signed-off-by: Armen Kesablyan <armen@motorola.com>
Diffstat (limited to 'js/tools/ShapeTool.js')
-rwxr-xr-x | js/tools/ShapeTool.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/tools/ShapeTool.js b/js/tools/ShapeTool.js index 03ddc391..8d381711 100755 --- a/js/tools/ShapeTool.js +++ b/js/tools/ShapeTool.js | |||
@@ -103,8 +103,8 @@ exports.ShapeTool = Montage.create(DrawingTool, { | |||
103 | if(wasSelected) { | 103 | if(wasSelected) { |
104 | this.AddCustomFeedback(); | 104 | this.AddCustomFeedback(); |
105 | this.application.ninja.elementMediator.addDelegate = this; | 105 | this.application.ninja.elementMediator.addDelegate = this; |
106 | if(this.application.ninja.currentSelectedContainer.nodeName === "CANVAS") { | 106 | if(this.application.ninja.currentDocument.model.domContainer.nodeName === "CANVAS") { |
107 | this._targetedElement = this.application.ninja.currentSelectedContainer; | 107 | this._targetedElement = this.application.ninja.currentDocument.model.domContainer; |
108 | } | 108 | } |
109 | } else { | 109 | } else { |
110 | this.RemoveCustomFeedback(); | 110 | this.RemoveCustomFeedback(); |
@@ -199,7 +199,7 @@ exports.ShapeTool = Montage.create(DrawingTool, { | |||
199 | target = this._targetedElement; | 199 | target = this._targetedElement; |
200 | else | 200 | else |
201 | { | 201 | { |
202 | var container = this.application.ninja.currentSelectedContainer; | 202 | var container = this.application.ninja.currentDocument.model.domContainer; |
203 | if (container && (container.nodeName === "CANVAS")) | 203 | if (container && (container.nodeName === "CANVAS")) |
204 | { | 204 | { |
205 | target = container; | 205 | target = container; |