From 4657d22eb02d2c3b8b54faaad9701009cb16dcdf Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Mon, 4 Jul 2016 10:54:51 +0800 Subject: [PATCH] Make eslint happy. --- app/assets/javascripts/discourse/lib/lock-on.js.es6 | 4 ---- app/assets/javascripts/discourse/lib/plugin-api.js.es6 | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/app/assets/javascripts/discourse/lib/lock-on.js.es6 b/app/assets/javascripts/discourse/lib/lock-on.js.es6 index 4eee96b2e..0770083c7 100644 --- a/app/assets/javascripts/discourse/lib/lock-on.js.es6 +++ b/app/assets/javascripts/discourse/lib/lock-on.js.es6 @@ -50,11 +50,7 @@ export default class LockOn { $(window).scrollTop(previousTop); - let i = 0; - const interval = setInterval(() => { - i = i + 1; - let top = this.elementTop(); const scrollTop = $(window).scrollTop(); diff --git a/app/assets/javascripts/discourse/lib/plugin-api.js.es6 b/app/assets/javascripts/discourse/lib/plugin-api.js.es6 index b7e04e57e..31d82700c 100644 --- a/app/assets/javascripts/discourse/lib/plugin-api.js.es6 +++ b/app/assets/javascripts/discourse/lib/plugin-api.js.es6 @@ -358,7 +358,7 @@ export function withPluginApi(version, apiCodeCallback, opts) { const api = getPluginApi(version); if (api) { - return apiCodeCallback(api); + return apiCodeCallback(api, opts); } }