Fix lint errors

This commit is contained in:
yflory
2017-01-25 10:21:31 +01:00
parent 097f78d777
commit 373b07ed28
5 changed files with 34 additions and 33 deletions

View File

@@ -495,8 +495,9 @@ define([
updateMetadata(shjson);
var newInner = JSON.parse(shjson);
var newSInner;
if (newInner.length > 2) {
var newSInner = stringify(newInner[2]);
newSInner = stringify(newInner[2]);
}
// build a dom from HJSON, diff, and patch the editor
@@ -535,7 +536,7 @@ define([
// Notify only when the content has changed, not when someone has joined/left
var oldSInner = stringify(JSON.parse(oldShjson)[2]);
if (newSInner !== oldSInner) {
if (newSInner && newSInner !== oldSInner) {
notify();
}
};