From: Aleksander Ɓukasz Date: Tue, 3 Dec 2013 15:56:59 +0000 (+0100) Subject: wip: removing console calls X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/2fbd2cb6926b1066b38adf0698a3679d089ad80c wip: removing console calls --- diff --git a/src/editor/modules/documentCanvas/canvas/canvas.js b/src/editor/modules/documentCanvas/canvas/canvas.js index ae75d61..d13e2ea 100644 --- a/src/editor/modules/documentCanvas/canvas/canvas.js +++ b/src/editor/modules/documentCanvas/canvas/canvas.js @@ -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) { diff --git a/src/editor/modules/documentCanvas/canvas/wlxmlListener.js b/src/editor/modules/documentCanvas/canvas/wlxmlListener.js index ffabfec..a98397f 100644 --- a/src/editor/modules/documentCanvas/canvas/wlxmlListener.js +++ b/src/editor/modules/documentCanvas/canvas/wlxmlListener.js @@ -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 === '') { diff --git a/src/smartxml/smartxml.js b/src/smartxml/smartxml.js index bb47c06..4a0cd7a 100644 --- a/src/smartxml/smartxml.js +++ b/src/smartxml/smartxml.js @@ -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 { diff --git a/src/smartxml/transformations.js b/src/smartxml/transformations.js index 8cf0819..6d72049 100644 --- a/src/smartxml/transformations.js +++ b/src/smartxml/transformations.js @@ -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; }