Permalink
Browse files

nodetest-786658: Upgrade to requirejs 1.0.8 (with hack)

I did s/path.existsSync/fs.existsSync/g because the error message was
annoying, and it's a simple drop in. Also RequireJS 2.0 is not a drop in
replacement for us.

Signed-off-by: Joe Walker <jwalker@mozilla.com>
  • Loading branch information...
1 parent 32e1f4a commit 73d8e7c61f935e340827eaf59a08cbc5d684a789 @joewalker joewalker committed Sep 5, 2012
Showing with 4,503 additions and 972 deletions.
  1. +7 −5 scripts/i18n.js
  2. +3,788 −330 scripts/r.js
  3. +604 −553 scripts/require.js
  4. +104 −84 scripts/text.js
View
@@ -1,5 +1,5 @@
/**
- * @license RequireJS i18n 0.26.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
+ * @license RequireJS i18n 1.0.0 Copyright (c) 2010-2011, The Dojo Foundation All Rights Reserved.
* Available via the MIT or new BSD license.
* see: http://github.com/jrburke/requirejs for details
*/
@@ -79,7 +79,7 @@
}
define({
- version: '0.26.0',
+ version: '1.0.0',
/**
* Called when a dependency needs to be loaded.
*/
@@ -123,8 +123,10 @@
current += (current ? "-" : "") + part;
addIfExists(req, current, toLoad, prefix, suffix);
}
- req(toLoad);
- onLoad();
+
+ req(toLoad, function () {
+ onLoad();
+ });
} else {
//First, fetch the master bundle, it knows what locales are available.
req([masterName], function (master) {
@@ -156,4 +158,4 @@
}
}
});
-}());
+}());
Oops, something went wrong.

0 comments on commit 73d8e7c

Please sign in to comment.