summaryrefslogtreecommitdiff
path: root/js/lib
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-01-17 16:50:10 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-01-17 16:50:10 -0800
commitc5da0cc4f84211ebefc189771deabfec9e9eb8ed (patch)
treed07b65240fb041fc39ba7a5f7a42076db814510c /js/lib
parentd81bb6a0598357cd56f3bc3d43eb8d7ccf0437a9 (diff)
Removed a check in addLine.
Diffstat (limited to 'js/lib')
-rw-r--r--js/lib/blocks.js3
1 files changed, 0 insertions, 3 deletions
diff --git a/js/lib/blocks.js b/js/lib/blocks.js
index d2072c6..c12be92 100644
--- a/js/lib/blocks.js
+++ b/js/lib/blocks.js
@@ -143,9 +143,6 @@ 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) {
- if (!(this.tip._open)) {
- throw { msg: "Attempted to add line (" + ln + ") to closed container." };
- }
this.tip._strings.push(ln.slice(this.offset));
};