From 9e4c48f5371b4305f6271e5c7e7dc20c022fa9f4 Mon Sep 17 00:00:00 2001 From: Caleb James DeLisle Date: Wed, 18 Oct 2017 12:25:13 +0300 Subject: [PATCH] lint errors --- www/common/sframe-app-framework.js | 3 ++- www/common/sframe-common-codemirror.js | 3 --- www/slide/inner.js | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/www/common/sframe-app-framework.js b/www/common/sframe-app-framework.js index a0dbdf3c5..094bda98c 100644 --- a/www/common/sframe-app-framework.js +++ b/www/common/sframe-app-framework.js @@ -142,6 +142,7 @@ define([ } }; + var onLocal; var onRemote = function () { if (state !== STATE.READY) { return; } @@ -199,7 +200,7 @@ define([ if (!bool && update) { onRemote(); } }; - var onLocal = function () { + onLocal = function () { if (state !== STATE.READY) { return; } if (readOnly) { return; } diff --git a/www/common/sframe-common-codemirror.js b/www/common/sframe-common-codemirror.js index 30f164296..b7037164f 100644 --- a/www/common/sframe-common-codemirror.js +++ b/www/common/sframe-common-codemirror.js @@ -4,10 +4,7 @@ define([ '/common/themes.js', '/common/cryptpad-common.js', '/bower_components/textpatcher/TextPatcher.js', - - '/bower_components/file-saver/FileSaver.min.js' ], function ($, Modes, Themes, Cryptpad, TextPatcher) { - var saveAs = window.saveAs; var module = {}; var cursorToPos = function(cursor, oldText) { diff --git a/www/slide/inner.js b/www/slide/inner.js index f32a33830..bcfdc60f0 100644 --- a/www/slide/inner.js +++ b/www/slide/inner.js @@ -366,7 +366,7 @@ define([ window.open(href); } }); - } + }; ///////////////////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////////////////////