X-Git-Url: http://git.cyclocoop.org/clavettes/images/siteon3.jpg?a=blobdiff_plain;f=resources%2Fsrc%2Fmediawiki%2Fmediawiki.Uri.js;h=d0ed6592ec3cb5192a69c145fcd501cf86e7a420;hb=c0fb8a883633f110a8083a164672e8334714d450;hp=835b4235716e3f3d71bfce8ff294f2e3c8783b73;hpb=18ec10a358b08931e27f0eb44daf8ccd26159b18;p=lhc%2Fweb%2Fwiklou.git diff --git a/resources/src/mediawiki/mediawiki.Uri.js b/resources/src/mediawiki/mediawiki.Uri.js index 835b423571..d0ed6592ec 100644 --- a/resources/src/mediawiki/mediawiki.Uri.js +++ b/resources/src/mediawiki/mediawiki.Uri.js @@ -50,7 +50,11 @@ * @class mw.Uri */ +/* eslint-disable no-use-before-define */ + ( function ( mw, $ ) { + var parser, properties; + /** * Function that's useful when constructing the URI string -- we frequently encounter the pattern * of having to add something to the URI as we go, but only if it's present, and to include a @@ -83,10 +87,10 @@ * @static * @property {Object} parser */ - var parser = { + parser = { strict: mw.template.get( 'mediawiki.Uri', 'strict.regexp' ).render(), loose: mw.template.get( 'mediawiki.Uri', 'loose.regexp' ).render() - }, + }; /** * The order here matches the order of captured matches in the `parser` property regexes.