aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-03-02 11:21:29 -0800
committerNivesh Rajbhandari2012-03-02 11:21:29 -0800
commitf3207f39ea9d8c1c34246217a23d3a689671903d (patch)
tree2b8e6b3f368fac592adb4c15ec7ae2f989ac9a3c /js
parent1760bac1da9218315ad1bacdcf3a157495a049e8 (diff)
downloadninja-f3207f39ea9d8c1c34246217a23d3a689671903d.tar.gz
Don't draw transform handles if the stage is the target element.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js')
-rwxr-xr-xjs/tools/SelectionTool.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/tools/SelectionTool.js b/js/tools/SelectionTool.js
index 1a6bee55..6d8ff175 100755
--- a/js/tools/SelectionTool.js
+++ b/js/tools/SelectionTool.js
@@ -755,7 +755,7 @@ var SelectionTool = exports.SelectionTool = Montage.create(ModifierToolBase, {
755 this.application.ninja.stage.clearDrawingCanvas(); 755 this.application.ninja.stage.clearDrawingCanvas();
756 756
757 var item = this._target; 757 var item = this._target;
758 if(!item) 758 if(!item || (item === this.application.ninja.currentDocument.documentRoot))
759 { 759 {
760 return; 760 return;
761 } 761 }