From 18dc111010075d4e47db371e38b5b10fc208d30b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Bartelme=C3=9F?= Date: Sat, 7 Apr 2012 03:42:05 +0200 Subject: [PATCH] Fixing bug where lists get deleted when pressing enter --- src/static/js/AttributeManager.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/static/js/AttributeManager.js b/src/static/js/AttributeManager.js index 5373a41d8..ed6bf1d68 100644 --- a/src/static/js/AttributeManager.js +++ b/src/static/js/AttributeManager.js @@ -83,9 +83,7 @@ AttributeManager.prototype = _(AttributeManager.prototype).extend({ // TODO if(hasMarker){ - ChangesetUtils.buildKeepRange(this.rep, builder, loc, (loc = [lineNum, 0]), [ - [attributeName, attributeValue] - ], this.rep.apool); + ChangesetUtils.buildKeepRange(this.rep, builder, loc, (loc = [lineNum, 0])); ChangesetUtils.buildRemoveRange(this.rep, builder, loc, (loc = [lineNum, 1])); }