aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorJonathan Duran2012-04-23 11:36:09 -0700
committerJonathan Duran2012-04-23 11:36:09 -0700
commit0475cb7e37601366ec07d77fcea44269d3d49633 (patch)
tree0d98822e40c0ed996665904a562e6e03862fe301 /js
parent415a6d4eaa5340ad4bbf4362a9a4b75ef870a7fb (diff)
downloadninja-0475cb7e37601366ec07d77fcea44269d3d49633.tar.gz
Fix Pen Tool not broadcasting elementAdded event
Signed-off-by: Jonathan Duran <jduran@motorola.com>
Diffstat (limited to 'js')
-rwxr-xr-xjs/tools/PenTool.js2
1 files changed, 2 insertions, 0 deletions
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);