1
1
/**
2
- * @license r.js 2.0.2+ Wed, 04 Jul 2012 00:44:40 GMT Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
2
+ * @license r.js 2.0.2+ Sun, 08 Jul 2012 06:25:26 GMT Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
3
3
* Available via the MIT or new BSD license.
4
4
* see: http://github.com/jrburke/requirejs for details
5
5
*/
@@ -20,7 +20,7 @@ var requirejs, require, define;
20
20
21
21
var fileName, env, fs, vm, path, exec, rhinoContext, dir, nodeRequire,
22
22
nodeDefine, exists, reqMain, loadedOptimizedLib, existsForNode,
23
- version = '2.0.2+ Wed, 04 Jul 2012 00:44:40 GMT',
23
+ version = '2.0.2+ Sun, 08 Jul 2012 06:25:26 GMT',
24
24
jsSuffixRegExp = /\.js$/,
25
25
commandOption = '',
26
26
useLibLoaded = {},
@@ -13598,7 +13598,13 @@ function (file, pragma, parse, lang, logger, commonJs) {
13598
13598
var layer,
13599
13599
pluginBuilderRegExp = /(["']?)pluginBuilder(["']?)\s*[=\:]\s*["']([^'"\s]+)["']/,
13600
13600
oldNewContext = require.s.newContext,
13601
- oldDef;
13601
+ oldDef,
13602
+
13603
+ //create local undefined values for module and exports,
13604
+ //so that when files are evaled in this function they do not
13605
+ //see the node values used for r.js
13606
+ exports,
13607
+ module;
13602
13608
13603
13609
//Stored cached file contents for reuse in other layers.
13604
13610
require._cachedFileContents = {};
0 commit comments