jshint compliance

This commit is contained in:
Caleb James DeLisle
2017-08-23 11:04:44 +02:00
parent 2ad9fcee17
commit acfaaa7d56
10 changed files with 19 additions and 27 deletions

View File

@@ -281,6 +281,7 @@ define([
var readOnly = false; // TODO
var cpNfInner;
var metadataMgr;
var onLocal;
var $bar = $('#cke_1_toolbox');
@@ -670,7 +671,7 @@ define([
realtimeOptions.onError = onConnectError;
var onLocal = realtimeOptions.onLocal = function () {
onLocal = realtimeOptions.onLocal = function () {
console.log('onlocal');
if (initializing) { return; }
if (isHistoryMode) { return; }
@@ -751,7 +752,7 @@ define([
customConfig: '/customize/ckeditor-config.js',
});
editor.on('instanceReady', waitFor());
}).nThen(function (waitFor) {
}).nThen(function (/*waitFor*/) {
Links.addSupportForOpeningLinksInNewTab(Ckeditor);
Cryptpad.onError(function (info) {
if (info && info.type === "store") {

View File

@@ -42,7 +42,7 @@ define([
secret.channel = Cryptpad.createChannelId();
}
Cryptpad.getShareHashes(secret, waitFor(function (err, h) { hashes = h; }));
}).nThen(function (waitFor) {
}).nThen(function (/*waitFor*/) {
var readOnly = secret.keys && !secret.keys.editKeyStr;
if (!secret.keys) { secret.keys = secret.key; }
var parsed = Cryptpad.parsePadUrl(window.location.href);
@@ -57,7 +57,7 @@ define([
if (err) { console.log(err); }
name = n;
}));
}).nThen(function (waitFor) {
}).nThen(function (/*waitFor*/) {
sframeChan.event('EV_METADATA_UPDATE', {
doc: {
defaultTitle: defaultTitle,