diff options
author | Valerio Virgillito | 2012-06-14 15:45:30 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-06-14 15:45:30 -0700 |
commit | 0a2e9c0d5c7571cc03ebcaa3ef8690fe69253947 (patch) | |
tree | 06e433aaec733fdf52c6efddfcd3deb46d617cd0 /js/tools | |
parent | 06679a2c21c6c749c8b3ea1a74431f6833726062 (diff) | |
parent | 596765056ca6e5b08395c6d7ea19e7684c2acaf3 (diff) | |
download | ninja-0a2e9c0d5c7571cc03ebcaa3ef8690fe69253947.tar.gz |
Merge pull request #301 from pushkarjoshi/brushtool
Brushtool
Diffstat (limited to 'js/tools')
-rwxr-xr-x | js/tools/PenTool.js | 10 |
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 | }, |