jshint compliance
This commit is contained in:
@@ -25,6 +25,7 @@ define([
|
||||
'/common/messages.js',
|
||||
'/bower_components/modalBox/modalBox-min.js'
|
||||
], function (Messages) {
|
||||
var $ = window.jQuery;
|
||||
|
||||
var STYLE = [
|
||||
'<style>',
|
||||
|
||||
@@ -19,7 +19,7 @@ define([
|
||||
'/common/otaml.js'
|
||||
], function () {
|
||||
|
||||
var $ = jQuery;
|
||||
var $ = window.jQuery;
|
||||
var Otaml = window.Otaml;
|
||||
var module = { exports: {} };
|
||||
var PARANOIA = true;
|
||||
|
||||
@@ -332,13 +332,13 @@ console.log(new Error().stack);
|
||||
var incomingPatch = function () {
|
||||
if (isErrorState || initializing) { return; }
|
||||
userDocBeforePatch = userDocBeforePatch || getFixedDocText(doc, ifr.contentWindow);
|
||||
if (PARANOIA && userDocBeforePatch != getFixedDocText(doc, ifr.contentWindow)) {
|
||||
error(false, "userDocBeforePatch != getFixedDocText(doc, ifr.contentWindow)");
|
||||
if (PARANOIA && userDocBeforePatch !== getFixedDocText(doc, ifr.contentWindow)) {
|
||||
error(false, "userDocBeforePatch !== getFixedDocText(doc, ifr.contentWindow)");
|
||||
}
|
||||
var op = attempt(makeHTMLOperation)(userDocBeforePatch, realtime.getUserDoc());
|
||||
if (!op) { return; }
|
||||
attempt(HTMLPatcher.applyOp)(
|
||||
userDocBeforePatch, op, doc.body, rangy, ifr.contentWindow);
|
||||
userDocBeforePatch, op, doc.body, Rangy, ifr.contentWindow);
|
||||
};
|
||||
|
||||
realtime.onUserListChange(function (userList) {
|
||||
|
||||
Reference in New Issue
Block a user