aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/lib/blocks.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/js/lib/blocks.js b/js/lib/blocks.js
index b4cf206..8001927 100644
--- a/js/lib/blocks.js
+++ b/js/lib/blocks.js
@@ -143,11 +143,10 @@ var breakOutOfLists = function(block) {
// Add a line to the block at the tip. We assume the tip
// can accept lines -- that check should be done before calling this.
var addLine = function(ln, offset) {
- var s = ln.slice(offset);
if (!(this.tip._open)) {
throw { msg: "Attempted to add line (" + ln + ") to closed container." };
}
- this.tip._strings.push(s);
+ this.tip._strings.push(ln.slice(offset));
};
// Add block of type tag as a child of the tip. If the tip can't