]>
git.wh0rd.org - tt-rss.git/blob - lib/dojo/main.js.uncompressed.js
2 "./_base/kernel", // kernel.isAsync
15 "./has!dojo-firebug?./_firebug/firebug",
18 ], function(kernel
, has
, require
, sniff
, lang
, array
, config
, ready
){
22 // This is the package main module for the dojo package; it loads dojo base appropriate for the execution environment.
24 // the preferred way to load the dojo firebug console is by setting has("dojo-firebug") true in dojoConfig
25 // the isDebug config switch is for backcompat and will work fine in sync loading mode; it works in
26 // async mode too, but there's no guarantee when the module is loaded; therefore, if you need a firebug
27 // console guaranteed at a particular spot in an app, either set config.has["dojo-firebug"] true before
28 // loading dojo.js or explicitly include dojo/_firebug/firebug in a dependency list.
30 require(["./_firebug/firebug"]);
33 // dojoConfig.require is deprecated; use the loader configuration property deps
34 1 || has
.add("dojo-config-require", 1);
36 var deps
= config
.require
;
38 // config.require may be dot notation
39 deps
= array
.map(lang
.isArray(deps
) ? deps
: [deps
], function(item
){ return item
.replace(/\./g, "/"); });
43 // this is a bit janky; in 1.6- dojo is defined before these requires are applied; but in 1.7+
44 // dojo isn't defined until returning from this module; this is only a problem in sync mode
45 // since we're in sync mode, we know we've got our loader with its priority ready queue
46 ready(1, function(){require(deps
);});