aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValerio Virgillito2012-04-30 16:31:37 -0700
committerValerio Virgillito2012-04-30 16:31:37 -0700
commitfb47c04b0a4d65f53d975311754aa0dd8a8a3f69 (patch)
treeb8e8962d36d01bfd39212f54671fec90246f7eb1
parent9c8fbdd11fdbe9ae73d57147de84b799c5a87652 (diff)
downloadninja-fb47c04b0a4d65f53d975311754aa0dd8a8a3f69.tar.gz
Removing some console logs
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
-rwxr-xr-xjs/tools/SelectionTool.js2
-rwxr-xr-xjs/tools/ShapeTool.js2
-rwxr-xr-xjs/tools/drawing-tool-base.js1
3 files changed, 0 insertions, 5 deletions
diff --git a/js/tools/SelectionTool.js b/js/tools/SelectionTool.js
index f7b583b5..855c7b8c 100755
--- a/js/tools/SelectionTool.js
+++ b/js/tools/SelectionTool.js
@@ -222,10 +222,8 @@ var SelectionTool = exports.SelectionTool = Montage.create(ModifierToolBase, {
222 value: function(event) { 222 value: function(event) {
223 if(this.application.ninja.selectedElements.length > 0) { 223 if(this.application.ninja.selectedElements.length > 0) {
224 this.application.ninja.currentSelectedContainer = this.application.ninja.selectedElements[0]; 224 this.application.ninja.currentSelectedContainer = this.application.ninja.selectedElements[0];
225 console.log( "setting container to selected element" );
226 } else { 225 } else {
227 this.application.ninja.currentSelectedContainer = this.application.ninja.currentDocument.documentRoot; 226 this.application.ninja.currentSelectedContainer = this.application.ninja.currentDocument.documentRoot;
228 console.log( "setting container to stage" );
229 } 227 }
230 } 228 }
231 }, 229 },
diff --git a/js/tools/ShapeTool.js b/js/tools/ShapeTool.js
index c0681200..8f45891d 100755
--- a/js/tools/ShapeTool.js
+++ b/js/tools/ShapeTool.js
@@ -64,7 +64,6 @@ exports.ShapeTool = Montage.create(DrawingTool, {
64 if(drawData) { 64 if(drawData) {
65 var canvas; 65 var canvas;
66 if(!this._useExistingCanvas()) { 66 if(!this._useExistingCanvas()) {
67 console.log( "creating a new canvas" );
68 canvas = NJUtils.makeNJElement("canvas", "Canvas", "shape", {"data-RDGE-id": NJUtils.generateRandom()}, true); 67 canvas = NJUtils.makeNJElement("canvas", "Canvas", "shape", {"data-RDGE-id": NJUtils.generateRandom()}, true);
69 var elementModel = TagTool.makeElement(~~drawData.width, ~~drawData.height, 68 var elementModel = TagTool.makeElement(~~drawData.width, ~~drawData.height,
70 drawData.planeMat, drawData.midPt, canvas, true); 69 drawData.planeMat, drawData.midPt, canvas, true);
@@ -72,7 +71,6 @@ exports.ShapeTool = Montage.create(DrawingTool, {
72 canvas.elementModel.isShape = true; 71 canvas.elementModel.isShape = true;
73 this.application.ninja.elementMediator.addElements(canvas, elementModel.data); 72 this.application.ninja.elementMediator.addElements(canvas, elementModel.data);
74 } else { 73 } else {
75 console.log( "inserting shape into container" );
76 canvas = this._targetedElement; 74 canvas = this._targetedElement;
77 if (!canvas.getAttribute( "data-RDGE-id" )) 75 if (!canvas.getAttribute( "data-RDGE-id" ))
78 canvas.setAttribute( "data-RDGE-id", NJUtils.generateRandom() ); 76 canvas.setAttribute( "data-RDGE-id", NJUtils.generateRandom() );
diff --git a/js/tools/drawing-tool-base.js b/js/tools/drawing-tool-base.js
index 2e652d42..0b51aa28 100755
--- a/js/tools/drawing-tool-base.js
+++ b/js/tools/drawing-tool-base.js
@@ -53,7 +53,6 @@ exports.DrawingToolBase = Montage.create(Montage, {
53 { 53 {
54 dragPlane = snapManager.setupDragPlanes( hitRec ); 54 dragPlane = snapManager.setupDragPlanes( hitRec );
55 } 55 }
56 console.log( "drag plane: " + dragPlane );
57 56
58 var wpHitRec = hitRec.convertToWorkingPlane( dragPlane ); 57 var wpHitRec = hitRec.convertToWorkingPlane( dragPlane );
59 var pt = hitRec.getScreenPoint(); 58 var pt = hitRec.getScreenPoint();