Skip to content

Commit 8027b52

Browse files
committed
2.1.8
1 parent 2c31e61 commit 8027b52

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

tools/r.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license r.js 2.1.7 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
2+
* @license r.js 2.1.8 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
33
* Available via the MIT or new BSD license.
44
* see: http://github.com/jrburke/requirejs for details
55
*/
@@ -20,7 +20,7 @@ var requirejs, require, define, xpcUtil;
2020
(function (console, args, readFileFunc) {
2121
var fileName, env, fs, vm, path, exec, rhinoContext, dir, nodeRequire,
2222
nodeDefine, exists, reqMain, loadedOptimizedLib, existsForNode, Cc, Ci,
23-
version = '2.1.7',
23+
version = '2.1.8',
2424
jsSuffixRegExp = /\.js$/,
2525
commandOption = '',
2626
useLibLoaded = {},
@@ -232,7 +232,7 @@ var requirejs, require, define, xpcUtil;
232232
}
233233

234234
/** vim: et:ts=4:sw=4:sts=4
235-
* @license RequireJS 2.1.7 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
235+
* @license RequireJS 2.1.8 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
236236
* Available via the MIT or new BSD license.
237237
* see: http://github.com/jrburke/requirejs for details
238238
*/
@@ -245,7 +245,7 @@ var requirejs, require, define, xpcUtil;
245245
(function (global) {
246246
var req, s, head, baseElement, dataMain, src,
247247
interactiveScript, currentlyAddingScript, mainScript, subPath,
248-
version = '2.1.7',
248+
version = '2.1.8',
249249
commentRegExp = /(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,
250250
cjsRequireRegExp = /[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,
251251
jsSuffixRegExp = /\.js$/,
@@ -21760,7 +21760,10 @@ define('parse', ['./esprimaAdapter', 'lang'], function (esprima, lang) {
2176021760
parse.nodeToString = function (contents, node) {
2176121761
var loc = node.loc,
2176221762
lines = contents.split('\n'),
21763-
preamble = lines.slice(0, loc.start.line - 1).join('\n') + '\n' +
21763+
firstLine = loc.start.line > 1 ?
21764+
lines.slice(0, loc.start.line - 1).join('\n') + '\n' :
21765+
'',
21766+
preamble = firstLine +
2176421767
lines[loc.start.line - 1].substring(0, loc.start.column),
2176521768
extracted = lines[loc.start.line - 1].substring(loc.start.column) +
2176621769
'\n' +

www/js/lib/require.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** vim: et:ts=4:sw=4:sts=4
2-
* @license RequireJS 2.1.7 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
2+
* @license RequireJS 2.1.8 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
33
* Available via the MIT or new BSD license.
44
* see: http://github.com/jrburke/requirejs for details
55
*/
@@ -12,7 +12,7 @@ var requirejs, require, define;
1212
(function (global) {
1313
var req, s, head, baseElement, dataMain, src,
1414
interactiveScript, currentlyAddingScript, mainScript, subPath,
15-
version = '2.1.7',
15+
version = '2.1.8',
1616
commentRegExp = /(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,
1717
cjsRequireRegExp = /[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,
1818
jsSuffixRegExp = /\.js$/,

0 commit comments

Comments
 (0)