fix jshint complaints in pad directory

pull/1/head
ansuz 9 years ago
parent fe3917c0f1
commit f1915d3b7c

@ -10,7 +10,7 @@ define([
var ifrw = $('#pad-iframe')[0].contentWindow;
var Ckeditor = ifrw.CKEDITOR;
var andThen = function () {
var andThen = function (Ckeditor) {
$(window).on('hashchange', function() {
window.location.reload();
});
@ -45,9 +45,9 @@ define([
var interval = 100;
var first = function () {
// FIXME assignment in conditional
if (Ckeditor = ifrw.CKEDITOR) {
andThen();
Ckeditor = ifrw.CKEDITOR;
if (Ckeditor) {
andThen(Ckeditor);
} else {
console.log("Ckeditor was not defined. Trying again in %sms",interval);
setTimeout(first, interval);

@ -210,7 +210,7 @@ window.ErrorBox = ErrorBox;
}
return x;
}
};
}
throw new Error();
});
};

Loading…
Cancel
Save