X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=resources%2Fsrc%2Fmediawiki%2Fmediawiki.experiments.js;h=4fedbeaea92a3cbece4216d322f5d436eebe9be8;hb=93be2c205a66701416067f8fc26fe989ffab296e;hp=49ff4115b584abb6fd59e094b468686c2a1f919d;hpb=8195f481a6b6083138d6258ff85f9fc1a4307b65;p=lhc%2Fweb%2Fwiklou.git diff --git a/resources/src/mediawiki/mediawiki.experiments.js b/resources/src/mediawiki/mediawiki.experiments.js index 49ff4115b5..4fedbeaea9 100644 --- a/resources/src/mediawiki/mediawiki.experiments.js +++ b/resources/src/mediawiki/mediawiki.experiments.js @@ -1,4 +1,3 @@ -/* jshint bitwise:false */ ( function ( mw, $ ) { var CONTROL_BUCKET = 'control', @@ -17,6 +16,7 @@ * @see https://jsbin.com/kejewi/4/watch?js,console */ function hashString( string ) { + /* eslint-disable no-bitwise */ var hash = 0, i = string.length; @@ -30,6 +30,7 @@ hash += ( hash << 15 ); return hash >>> 0; + /* eslint-enable no-bitwise */ } /** @@ -65,8 +66,6 @@ * assigned to either the A or B buckets. If the experiment were disabled, * then the user would always be assigned to the control bucket. * - * This function is based on the deprecated `mw.user.bucket` function. - * * @param {Object} experiment * @param {string} experiment.name The name of the experiment * @param {boolean} experiment.enabled Whether or not the experiment is