1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-14 09:55:54 +00:00

upgrade dojo to 1.8.3 (refs #570)

This commit is contained in:
Andrew Dolgov
2013-03-18 10:26:24 +04:00
parent 9a2885da17
commit f0cfe83e37
1568 changed files with 159866 additions and 2781 deletions

View File

@@ -0,0 +1,27 @@
define("dojo/node", ["dojo/has"], function(has){
if(! 0 ){
throw new Error("node plugin failed to load because environment is not Node.js");
}
return {
// summary:
// This AMD plugin module allows native Node.js modules to be loaded by AMD modules using the Dojo
// loader. Note that this plugin will not work with AMD loaders other than the Dojo loader.
// example:
// | require(["dojo/node!fs"], function(fs){
// | var fileData = fs.readFileSync("foo.txt", "utf-8");
// | });
load: function(/*string*/ id, /*Function*/ require, /*Function*/ load){
// summary:
// Standard AMD plugin interface. See https://github.com/amdjs/amdjs-api/wiki/Loader-Plugins
// for information.
if(!require.nodeRequire){
throw new Error("Cannot find native require function");
}
load(require.nodeRequire(id));
}
};
});