From 3c7a0345c83f8377152afc99ea773ccdf573e051 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Fri, 12 Jul 2013 13:23:24 +0200 Subject: [PATCH 1/1] clean up --- modules/documentCanvas/canvas/canvas.test3.js | 1 - modules/documentCanvas/canvasManager.js | 2 -- 2 files changed, 3 deletions(-) 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()) { -- 2.20.1