From: Tim Düsterhus Date: Sat, 19 Nov 2016 01:11:09 +0000 (+0100) Subject: Update to require.js 2.3.2 X-Git-Tag: 3.0.0_Beta_5~21 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3ed4a4203e15e2f596b494c6dcd8ba201153f2c7;p=GitHub%2FWoltLab%2FWCF.git Update to require.js 2.3.2 --- diff --git a/wcfsetup/install/files/js/require.js b/wcfsetup/install/files/js/require.js index 23ddb4ee66..4db14246c5 100644 --- a/wcfsetup/install/files/js/require.js +++ b/wcfsetup/install/files/js/require.js @@ -1,6 +1,6 @@ /** vim: et:ts=4:sw=4:sts=4 - * @license RequireJS 2.2.0 Copyright jQuery Foundation and other contributors. - * Released under MIT license, http://github.com/requirejs/requirejs/LICENSE + * @license RequireJS 2.3.2 Copyright jQuery Foundation and other contributors. + * Released under MIT license, https://github.com/requirejs/requirejs/blob/master/LICENSE */ //Not using strict: uneven strict support in browsers, #392, and causes //problems with requirejs.exec()/transpiler plugins that may not be strict. @@ -8,11 +8,11 @@ /*global window, navigator, document, importScripts, setTimeout, opera */ var requirejs, require, define; -(function (global) { +(function (global, setTimeout) { var req, s, head, baseElement, dataMain, src, interactiveScript, currentlyAddingScript, mainScript, subPath, - version = '2.2.0', - commentRegExp = /(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg, + version = '2.3.2', + commentRegExp = /\/\*[\s\S]*?\*\/|([^:"'=]|^)\/\/.*$/mg, cjsRequireRegExp = /[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g, jsSuffixRegExp = /\.js$/, currDirRegExp = /^\.\//, @@ -36,7 +36,7 @@ var requirejs, require, define; useInteractive = false; //Could match something like ')//comment', do not lose the prefix to comment. - function commentReplace(match, multi, multiText, singlePrefix) { + function commentReplace(match, singlePrefix) { return singlePrefix || ''; } @@ -2139,4 +2139,4 @@ var requirejs, require, define; //Set up with config info. req(cfg); -}(this)); +}(this, (typeof setTimeout === 'undefined' ? undefined : setTimeout)));