From 83e1bf0dc4259fed5578174a9dfcf1682acc8854 Mon Sep 17 00:00:00 2001 From: webzwo0i Date: Mon, 16 Feb 2015 03:33:57 +0100 Subject: [PATCH] add semicolons --- src/static/js/Changeset.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/static/js/Changeset.js b/src/static/js/Changeset.js index 6ccfe70f..ff4d16c6 100644 --- a/src/static/js/Changeset.js +++ b/src/static/js/Changeset.js @@ -915,7 +915,7 @@ exports.applyToText = function (cs, str) { var csIter = exports.opIterator(unpacked.ops); var bankIter = exports.stringIterator(unpacked.charBank); var strIter = exports.stringIterator(str); - var newlinefail = false + var newlinefail = false; var assem = exports.stringAssembler(); while (csIter.hasNext()) { var op = csIter.next(); @@ -924,7 +924,7 @@ exports.applyToText = function (cs, str) { //op is + and op.lines 0: no newlines must be in op.chars //op is + and op.lines >0: op.chars must include op.lines newlines if(op.lines != bankIter.peek(op.chars).split("\n").length - 1){ - newlinefail = true + newlinefail = true; } assem.append(bankIter.take(op.chars)); break; @@ -932,7 +932,7 @@ exports.applyToText = function (cs, str) { //op is - and op.lines 0: no newlines must be in the deleted string //op is - and op.lines >0: op.lines newlines must be in the deleted string if(op.lines != strIter.peek(op.chars).split("\n").length - 1){ - newlinefail = true + newlinefail = true; } strIter.skip(op.chars); break; @@ -940,7 +940,7 @@ exports.applyToText = function (cs, str) { //op is = and op.lines 0: no newlines must be in the copied string //op is = and op.lines >0: op.lines newlines must be in the copied string if(op.lines != strIter.peek(op.chars).split("\n").length - 1){ - newlinefail = true + newlinefail = true; } assem.append(strIter.take(op.chars)); break; @@ -1620,7 +1620,7 @@ exports.makeAText = function (text, attribs) { exports.applyToAText = function (cs, atext, pool) { var text = exports.applyToText(cs, atext.text) if(text[1]){ - throw new Error("newline count is wrong, cs:"+cs+" and text:"+atext.text) + throw new Error("newline count is wrong, cs:"+cs+" and text:"+atext.text); } return { text: text[0],