From 3ed4a4203e15e2f596b494c6dcd8ba201153f2c7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Sat, 19 Nov 2016 02:11:09 +0100 Subject: [PATCH] Update to require.js 2.3.2 --- wcfsetup/install/files/js/require.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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))); -- 2.20.1