aboutsummaryrefslogtreecommitdiff
path: root/js/tools/SelectionTool.js
diff options
context:
space:
mode:
authorValerio Virgillito2012-06-11 17:03:16 -0700
committerValerio Virgillito2012-06-11 17:03:16 -0700
commit6854a72504f57903bd5de003e377f2aefb02d0da (patch)
tree5dff803d67722595418e69f6cce9ec8a1a616f2f /js/tools/SelectionTool.js
parent756cbfad2b98b300af8db3793aa21718b88dd950 (diff)
parentf4ad120c1a0d8594b8741eb1b07fdbd4fefcadeb (diff)
downloadninja-6854a72504f57903bd5de003e377f2aefb02d0da.tar.gz
Merge pull request #288 from mencio/dom-container
Dom container - Fixing the current selected container
Diffstat (limited to 'js/tools/SelectionTool.js')
-rwxr-xr-xjs/tools/SelectionTool.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/tools/SelectionTool.js b/js/tools/SelectionTool.js
index ed92b893..493f4aa2 100755
--- a/js/tools/SelectionTool.js
+++ b/js/tools/SelectionTool.js
@@ -224,9 +224,9 @@ var SelectionTool = exports.SelectionTool = Montage.create(ModifierToolBase, {
224 HandleDoubleClick: { 224 HandleDoubleClick: {
225 value: function(event) { 225 value: function(event) {
226 if(this.application.ninja.selectedElements.length > 0) { 226 if(this.application.ninja.selectedElements.length > 0) {
227 this.application.ninja.currentSelectedContainer = this.application.ninja.selectedElements[0]; 227 this.application.ninja.currentDocument.model.domContainer = this.application.ninja.selectedElements[0];
228 } else { 228 } else {
229 this.application.ninja.currentSelectedContainer = this.application.ninja.currentDocument.model.documentRoot; 229 this.application.ninja.currentDocument.model.domContainer = this.application.ninja.currentDocument.model.documentRoot;
230 } 230 }
231 } 231 }
232 }, 232 },