jshint compliance

This commit is contained in:
ansuz
2016-02-15 16:07:46 +01:00
parent d1885fbab6
commit 3cb94b8d80
16 changed files with 52 additions and 29 deletions

View File

@@ -268,7 +268,7 @@ console.log(new Error().stack);
var incomingPatch = function () {
if (isErrorState || initializing) { return; }
userDocBeforePatch = userDocBeforePatch || getDocHTML(doc);
if (PARANOIA && userDocBeforePatch != getDocHTML(doc)) {
if (PARANOIA && userDocBeforePatch !== getDocHTML(doc)) {
error(false, "userDocBeforePatch != getDocHTML(doc)");
}
var op = attempt(Otaml.makeTextOperation)(userDocBeforePatch, realtime.getUserDoc());