From 0475cb7e37601366ec07d77fcea44269d3d49633 Mon Sep 17 00:00:00 2001 From: Jonathan Duran Date: Mon, 23 Apr 2012 11:36:09 -0700 Subject: Fix Pen Tool not broadcasting elementAdded event Signed-off-by: Jonathan Duran --- js/tools/PenTool.js | 2 ++ 1 file changed, 2 insertions(+) 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, { // TODO - update the shape's info only. shapeModel will likely need an array of shapes. } + NJevent("elementAdded", newCanvas); + if(newCanvas.elementModel.isShape) { this.application.ninja.selectionController.selectElement(newCanvas); -- cgit v1.2.3