diff --git a/plugins/c9.ide.collab/ot/index_cache.js b/plugins/c9.ide.collab/ot/index_cache.js index a13c5e8a..6187aae5 100644 --- a/plugins/c9.ide.collab/ot/index_cache.js +++ b/plugins/c9.ide.collab/ot/index_cache.js @@ -49,7 +49,7 @@ function IndexCache(doc) { if (check) { var slowPos = doc.indexToPositionSlow(index); - if (slowPos.row !== pos.row && slowPos.column !== slowPos.column) + if (slowPos.row !== pos.row && slowPos.column !== pos.column) reportError("Inconsistency in indexToPosition"); return slowPos; } diff --git a/plugins/c9.ide.language.jsonalyzer/server/invoke_helper.js b/plugins/c9.ide.language.jsonalyzer/server/invoke_helper.js index c5add499..d243cc09 100644 --- a/plugins/c9.ide.language.jsonalyzer/server/invoke_helper.js +++ b/plugins/c9.ide.language.jsonalyzer/server/invoke_helper.js @@ -30,7 +30,7 @@ handler.init = function(options, callback) { }; handler.invoke = function(path, doc, ast, options, callback) { - options.mode == options.mode || "stdin"; + options.mode = options.mode || "stdin"; if (options.overrideLine != null) { var lines = doc.toString().split(/\r\n|\n|\r/); if (lines[options.overrideLineRow] !== options.overrideLine) {