diff options
Diffstat (limited to 'js/tools/SelectionTool.js')
-rwxr-xr-x | js/tools/SelectionTool.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/js/tools/SelectionTool.js b/js/tools/SelectionTool.js index 7b72a857..493f4aa2 100755 --- a/js/tools/SelectionTool.js +++ b/js/tools/SelectionTool.js | |||
@@ -49,6 +49,8 @@ var SelectionTool = exports.SelectionTool = Montage.create(ModifierToolBase, { | |||
49 | 49 | ||
50 | startDraw: { | 50 | startDraw: { |
51 | value: function(event) { | 51 | value: function(event) { |
52 | this.drawData = null; | ||
53 | |||
52 | if(!this.application.ninja.selectedElements.length) | 54 | if(!this.application.ninja.selectedElements.length) |
53 | { | 55 | { |
54 | this._isSelecting = true; | 56 | this._isSelecting = true; |
@@ -222,9 +224,9 @@ var SelectionTool = exports.SelectionTool = Montage.create(ModifierToolBase, { | |||
222 | HandleDoubleClick: { | 224 | HandleDoubleClick: { |
223 | value: function(event) { | 225 | value: function(event) { |
224 | if(this.application.ninja.selectedElements.length > 0) { | 226 | if(this.application.ninja.selectedElements.length > 0) { |
225 | this.application.ninja.currentSelectedContainer = this.application.ninja.selectedElements[0]; | 227 | this.application.ninja.currentDocument.model.domContainer = this.application.ninja.selectedElements[0]; |
226 | } else { | 228 | } else { |
227 | this.application.ninja.currentSelectedContainer = this.application.ninja.currentDocument.model.documentRoot; | 229 | this.application.ninja.currentDocument.model.domContainer = this.application.ninja.currentDocument.model.documentRoot; |
228 | } | 230 | } |
229 | } | 231 | } |
230 | }, | 232 | }, |