aboutsummaryrefslogtreecommitdiff
path: root/js/tools
diff options
context:
space:
mode:
Diffstat (limited to 'js/tools')
-rw-r--r--js/tools/BrushTool.js2
-rwxr-xr-xjs/tools/PenTool.js2
-rwxr-xr-xjs/tools/SelectionTool.js2
3 files changed, 6 insertions, 0 deletions
diff --git a/js/tools/BrushTool.js b/js/tools/BrushTool.js
index 4347658a..34a3c3ff 100644
--- a/js/tools/BrushTool.js
+++ b/js/tools/BrushTool.js
@@ -343,6 +343,8 @@ exports.BrushTool = Montage.create(ShapeTool, {
343 // TODO - update the shape's info only. shapeModel will likely need an array of shapes. 343 // TODO - update the shape's info only. shapeModel will likely need an array of shapes.
344 } 344 }
345 345
346 NJevent("elementAdded", newCanvas);
347
346 //if(newCanvas.elementModel.isShape) 348 //if(newCanvas.elementModel.isShape)
347 if (true) 349 if (true)
348 { 350 {
diff --git a/js/tools/PenTool.js b/js/tools/PenTool.js
index 7fc8dd95..3ffe0b62 100755
--- a/js/tools/PenTool.js
+++ b/js/tools/PenTool.js
@@ -619,6 +619,8 @@ exports.PenTool = Montage.create(ShapeTool, {
619 // TODO - update the shape's info only. shapeModel will likely need an array of shapes. 619 // TODO - update the shape's info only. shapeModel will likely need an array of shapes.
620 } 620 }
621 621
622 NJevent("elementAdded", newCanvas);
623
622 if(newCanvas.elementModel.isShape) 624 if(newCanvas.elementModel.isShape)
623 { 625 {
624 this.application.ninja.selectionController.selectElement(newCanvas); 626 this.application.ninja.selectionController.selectElement(newCanvas);
diff --git a/js/tools/SelectionTool.js b/js/tools/SelectionTool.js
index 7033ee3d..414f9d11 100755
--- a/js/tools/SelectionTool.js
+++ b/js/tools/SelectionTool.js
@@ -221,8 +221,10 @@ var SelectionTool = exports.SelectionTool = Montage.create(ModifierToolBase, {
221 HandleDoubleClick: { 221 HandleDoubleClick: {
222 value: function(event) { 222 value: function(event) {
223 if(this.application.ninja.selectedElements.length > 0) { 223 if(this.application.ninja.selectedElements.length > 0) {
224// this.application.ninja.currentDocument.breadCrumbClick = true;
224 this.application.ninja.currentSelectedContainer = this.application.ninja.selectedElements[0]; 225 this.application.ninja.currentSelectedContainer = this.application.ninja.selectedElements[0];
225 } else { 226 } else {
227// this.application.ninja.currentDocument.breadCrumbClick = true;
226 this.application.ninja.currentSelectedContainer = this.application.ninja.currentDocument.documentRoot; 228 this.application.ninja.currentSelectedContainer = this.application.ninja.currentDocument.documentRoot;
227 } 229 }
228 } 230 }