aboutsummaryrefslogtreecommitdiff
path: root/js/tools
diff options
context:
space:
mode:
authorhwc4872012-06-14 16:20:01 -0700
committerhwc4872012-06-14 16:20:01 -0700
commit2bcc1d3c6c1e31f5ca4310c581602bfa8b8a1265 (patch)
tree54f8fb15e1f073f159e577af8324a447789d7a64 /js/tools
parentf0fc7a5678093cce986bd99fef2c5c88add19b68 (diff)
parent5ee0c89fa0c7acc280ff3b884767e8513fd0b315 (diff)
downloadninja-2bcc1d3c6c1e31f5ca4310c581602bfa8b8a1265.tar.gz
Merge branch 'master' of github.com:Motorola-Mobility/ninja-internal into Textures
Diffstat (limited to 'js/tools')
-rwxr-xr-xjs/tools/PenTool.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/js/tools/PenTool.js b/js/tools/PenTool.js
index 33ca5c71..2cffb44d 100755
--- a/js/tools/PenTool.js
+++ b/js/tools/PenTool.js
@@ -204,10 +204,12 @@ exports.PenTool = Montage.create(ShapeTool, {
204 this.application.ninja.stage.clearDrawingCanvas();//stageManagerModule.stageManager.clearDrawingCanvas(); 204 this.application.ninja.stage.clearDrawingCanvas();//stageManagerModule.stageManager.clearDrawingCanvas();
205 205
206 //undo/redo...go through ElementController and NJEvent 206 //undo/redo...go through ElementController and NJEvent
207 var els = []; 207 if (this._selectedSubpathCanvas) {
208 ElementController.removeElement(this._selectedSubpathCanvas); 208 var els = [];
209 els.push(this._selectedSubpathCanvas); 209 ElementController.removeElement(this._selectedSubpathCanvas);
210 NJevent( "elementsRemoved", els ); 210 els.push(this._selectedSubpathCanvas);
211 NJevent( "elementsRemoved", els );
212 }
211 this._selectedSubpathCanvas = null; 213 this._selectedSubpathCanvas = null;
212 } 214 }
213 }, 215 },