diff options
author | Mike Greiling <mike@pixelcog.com> | 2016-11-30 17:21:28 -0600 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2016-11-30 17:21:28 -0600 |
commit | 31356c203d6333158872ecad98d1cc071631a559 (patch) | |
tree | d9c2b053468cf783d4e93d4b8255e51c6db083c8 | |
parent | ee99de6e61a02a61bef8fb0f85a114d2a28c5425 (diff) | |
download | gitlab-ce-31356c203d6333158872ecad98d1cc071631a559.tar.gz |
satisfy eslint no-param-reassign and remove rule exception
-rw-r--r-- | app/assets/javascripts/subscription.js.es6 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/assets/javascripts/subscription.js.es6 b/app/assets/javascripts/subscription.js.es6 index 8ca3281d824..73d484f85c7 100644 --- a/app/assets/javascripts/subscription.js.es6 +++ b/app/assets/javascripts/subscription.js.es6 @@ -1,7 +1,6 @@ -/* eslint-disable no-param-reassign */ /* global Vue */ -((global) => { +(() => { class Subscription { constructor(containerSelector) { this.containerElm = (typeof containerSelector === 'string') @@ -54,5 +53,6 @@ } } - global.Subscription = Subscription; -})(window.gl || (window.gl = {})); + window.gl = window.gl || {}; + window.gl.Subscription = Subscription; +})(); |