wip: removing console calls
authorAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Tue, 3 Dec 2013 15:56:59 +0000 (16:56 +0100)
committerAleksander Łukasz <aleksander.lukasz@nowoczesnapolska.org.pl>
Sun, 15 Dec 2013 21:32:47 +0000 (22:32 +0100)
src/editor/modules/documentCanvas/canvas/canvas.js
src/editor/modules/documentCanvas/canvas/wlxmlListener.js
src/smartxml/smartxml.js
src/smartxml/transformations.js

index ae75d61..d13e2ea 100644 (file)
@@ -13,7 +13,7 @@ define([
 var TextHandler = function(canvas) {this.canvas = canvas; this.buffer = null};
 $.extend(TextHandler.prototype, {
     handle: function(node, text) {
-        console.log('canvas text handler: ' + text);
+        //console.log('canvas text handler: ' + text);
         this.setText(text, node);
         return;
         if(!this.node) {
index ffabfec..a98397f 100644 (file)
@@ -68,7 +68,7 @@ var handlers = {
         canvasNode.detach();
     },
     nodeTextChange: function(event) {
-        console.log('wlxmlListener: ' + event.meta.node.getText());
+        //console.log('wlxmlListener: ' + event.meta.node.getText());
         var canvasElement = utils.findCanvasElement(event.meta.node),
             toSet = event.meta.node.getText();
         if(toSet === '') {
index bb47c06..4a0cd7a 100644 (file)
@@ -451,7 +451,7 @@ $.extend(TextNode.prototype, {
     },
 
     setText: function(text) {
-        console.log('smartxml: ' + text);
+        //console.log('smartxml: ' + text);
         this.nativeNode.data = text;
         this.triggerTextChangeEvent();
     },
@@ -761,7 +761,7 @@ $.extend(Document.prototype, Backbone.Events, {
     },
 
     transform: function(transformation, args) {
-        console.log('transform');
+        //console.log('transform');
         var Transformation, toret;
         if(typeof transformation === 'string') {
             Transformation = this.transformations.get(transformation);
@@ -776,7 +776,7 @@ $.extend(Document.prototype, Backbone.Events, {
                 this.undoStack.push(transformation);
             }
             this._transformationLevel--;
-            console.log('clearing redo stack');
+            //console.log('clearing redo stack');
             this.redoStack = [];
             return toret;
         } else {
index 8cf0819..6d72049 100644 (file)
@@ -19,10 +19,10 @@ toret.createGenericTransformation = function(desc) {
                 Object.defineProperty(transformation.args, key, {
                     get: function() {
                         if(transformation.hasRun) {
-                            console.log('returning via path');
+                            //console.log('returning via path');
                             return transformation.document.getNodeByPath(path);
                         } else {
-                            console.log('returning original arg');
+                            //console.log('returning original arg');
                             return value;
 
                         }