From a592317e35a0932c46f11f86072da365b4521291 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 6 Nov 2017 15:49:40 +0100 Subject: [PATCH] lint compliance --- www/common/common-thumbnail.js | 3 ++- www/common/diffMarked.js | 2 +- www/common/sframe-common-interface.js | 2 -- www/poll/inner.js | 1 - 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/www/common/common-thumbnail.js b/www/common/common-thumbnail.js index dd8e37ec0..5f5a8106a 100644 --- a/www/common/common-thumbnail.js +++ b/www/common/common-thumbnail.js @@ -1,11 +1,12 @@ define([ + 'jquery', '/common/common-util.js', '/common/visible.js', '/common/common-hash.js', '/file/file-crypto.js', '/bower_components/localforage/dist/localforage.min.js', '/bower_components/tweetnacl/nacl-fast.min.js', -], function (Util, Visible, Hash, FileCrypto, localForage) { +], function ($, Util, Visible, Hash, FileCrypto, localForage) { var Nacl = window.nacl; var Thumb = { dimension: 100, diff --git a/www/common/diffMarked.js b/www/common/diffMarked.js index 36fafb63e..abd5248ec 100644 --- a/www/common/diffMarked.js +++ b/www/common/diffMarked.js @@ -188,7 +188,7 @@ define([ mutations.forEach(function(mutation) { if (mutation.type === 'childList') { var list_values = [].slice.call(mutation.target.children) - .map(function (el) { return el.outerHTML }) + .map(function (el) { return el.outerHTML; }) .join(''); mediaMap[mutation.target.getAttribute('src')] = list_values; observer.disconnect(); diff --git a/www/common/sframe-common-interface.js b/www/common/sframe-common-interface.js index 0438c896e..d4a0e01d3 100644 --- a/www/common/sframe-common-interface.js +++ b/www/common/sframe-common-interface.js @@ -7,12 +7,10 @@ define([ '/common/tippy.min.js', '/customize/application_config.js', - '/bower_components/tweetnacl/nacl-fast.min.js', 'css!/common/tippy.css', ], function ($, Config, Cryptpad, Util, MediaTag, Tippy, AppConfig) { var UI = {}; var Messages = Cryptpad.Messages; - var Nacl = window.nacl; /** * Requirements from cryptpad-common.js diff --git a/www/poll/inner.js b/www/poll/inner.js index a71f663d7..783ed9afc 100644 --- a/www/poll/inner.js +++ b/www/poll/inner.js @@ -800,7 +800,6 @@ define([ }; var initThumbnails = function () { - var oldThumbnailState; var privateDat = metadataMgr.getPrivateData(); if (!privateDat.thumbnails) { return; } // Thumbnails are disabled var hash = privateDat.availableHashes.editHash ||