From: Aleksander Ɓukasz Date: Fri, 12 Jul 2013 11:23:24 +0000 (+0200) Subject: clean up X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/3c7a0345c83f8377152afc99ea773ccdf573e051?ds=sidebyside clean up --- diff --git a/modules/documentCanvas/canvas/canvas.test3.js b/modules/documentCanvas/canvas/canvas.test3.js index 56665d4..147da86 100644 --- a/modules/documentCanvas/canvas/canvas.test3.js +++ b/modules/documentCanvas/canvas/canvas.test3.js @@ -896,7 +896,6 @@ describe('Canvas', function() { position = cursor.getPosition(); expect(cursor.isSelecting()).to.equal(false, 'cursor is not selecting anything'); - //expect(cursor.getElement().getText()) expect(position.element.getText()).to.equal('Alice has a cat'); expect(position.offset).to.equal(5); }); diff --git a/modules/documentCanvas/canvasManager.js b/modules/documentCanvas/canvasManager.js index 7875450..81eb3c2 100644 --- a/modules/documentCanvas/canvasManager.js +++ b/modules/documentCanvas/canvasManager.js @@ -200,8 +200,6 @@ Manager.prototype.command = function(command, params) { parent2 = selectionEnd.element.parent() || undefined; if(command === 'unwrap-node') { - // this.canvas.nodeUnwrap({node: canvasNode.create(pos.parentNode)}); - // this.sandbox.publish('contentChanged'); if(this.canvas.list.areItemsOfTheSameList({element1: parent1, element2: parent2})) { this.canvas.list.extractItems({element1: parent1, element2: parent2}); } else if(!cursor.isSelecting()) {