summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/smart_interval.js
diff options
context:
space:
mode:
authorSimon Knox <psimyn@gmail.com>2017-10-31 14:15:54 +0200
committerSimon Knox <psimyn@gmail.com>2017-10-31 14:15:54 +0200
commitf3ae99fa9d9ebe78319359ce8d6855e68af81aaf (patch)
tree81bb4668055df5c7feb6d333a29bc6ea10bb1f2c /app/assets/javascripts/smart_interval.js
parent1d298e4939c5230251d5bc3ad9a58ec34196e4b1 (diff)
downloadgitlab-ce-f3ae99fa9d9ebe78319359ce8d6855e68af81aaf.tar.gz
remove global export from SmartInterval
Diffstat (limited to 'app/assets/javascripts/smart_interval.js')
-rw-r--r--app/assets/javascripts/smart_interval.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/assets/javascripts/smart_interval.js b/app/assets/javascripts/smart_interval.js
index cee2d2ba1e2..89e7a4ebc5c 100644
--- a/app/assets/javascripts/smart_interval.js
+++ b/app/assets/javascripts/smart_interval.js
@@ -3,7 +3,7 @@
* and controllable by a public API.
*/
-class SmartInterval {
+export default class SmartInterval {
/**
* @param { function } opts.callback Function to be called on each iteration (required)
* @param { milliseconds } opts.startingInterval `currentInterval` is set to this initially
@@ -168,4 +168,3 @@ class SmartInterval {
}
}
-window.gl.SmartInterval = SmartInterval;