1
1
/**
2
- * @license r.js 2.2.0+ Sun, 04 Sep 2016 06:25:31 GMT Copyright jQuery Foundation and other contributors.
2
+ * @license r.js 2.3.0 Copyright jQuery Foundation and other contributors.
3
3
* Released under MIT license, http://github.com/requirejs/r.js/LICENSE
4
4
*/
5
5
@@ -19,7 +19,7 @@ var requirejs, require, define, xpcUtil;
19
19
(function (console, args, readFileFunc) {
20
20
var fileName, env, fs, vm, path, exec, rhinoContext, dir, nodeRequire,
21
21
nodeDefine, exists, reqMain, loadedOptimizedLib, existsForNode, Cc, Ci,
22
- version = '2.2.0+ Sun, 04 Sep 2016 06:25:31 GMT ',
22
+ version = '2.3.0 ',
23
23
jsSuffixRegExp = /\.js$/,
24
24
commandOption = '',
25
25
useLibLoaded = {},
@@ -248,20 +248,20 @@ var requirejs, require, define, xpcUtil;
248
248
}
249
249
250
250
/** vim: et:ts=4:sw=4:sts=4
251
- * @license RequireJS 2.2 .0 Copyright jQuery Foundation and other contributors.
252
- * Released under MIT license, http ://github.com/requirejs/requirejs/LICENSE
251
+ * @license RequireJS 2.3 .0 Copyright jQuery Foundation and other contributors.
252
+ * Released under MIT license, https ://github.com/requirejs/requirejs/blob/master /LICENSE
253
253
*/
254
254
//Not using strict: uneven strict support in browsers, #392, and causes
255
255
//problems with requirejs.exec()/transpiler plugins that may not be strict.
256
256
/*jslint regexp: true, nomen: true, sloppy: true */
257
257
/*global window, navigator, document, importScripts, setTimeout, opera */
258
258
259
259
260
- (function (global) {
260
+ (function (global, setTimeout ) {
261
261
var req, s, head, baseElement, dataMain, src,
262
262
interactiveScript, currentlyAddingScript, mainScript, subPath,
263
- version = '2.2 .0',
264
- commentRegExp = /( \/\*( [\s\S]*?) \*\/|([^:]|^)\/\/(.*)$) /mg,
263
+ version = '2.3 .0',
264
+ commentRegExp = /\/\*[\s\S]*?\*\/|([^:"'= ]|^)\/\/.*$ /mg,
265
265
cjsRequireRegExp = /[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,
266
266
jsSuffixRegExp = /\.js$/,
267
267
currDirRegExp = /^\.\//,
@@ -285,7 +285,7 @@ var requirejs, require, define, xpcUtil;
285
285
useInteractive = false;
286
286
287
287
//Could match something like ')//comment', do not lose the prefix to comment.
288
- function commentReplace(match, multi, multiText, singlePrefix) {
288
+ function commentReplace(match, singlePrefix) {
289
289
return singlePrefix || '';
290
290
}
291
291
@@ -2388,7 +2388,7 @@ var requirejs, require, define, xpcUtil;
2388
2388
2389
2389
//Set up with config info.
2390
2390
req(cfg);
2391
- }(this));
2391
+ }(this, setTimeout ));
2392
2392
2393
2393
2394
2394
0 commit comments