dojo
Version:
Dojo core is a powerful, lightweight library that makes common tasks quicker and easier. Animate elements, manipulate the DOM, and query with easy CSS syntax, all without sacrificing performance.
39 lines (35 loc) • 874 B
JavaScript
var testArgs = {
async: (location.search.match(/(\&|\?)async/) == null) ? 0 : 1,
baseUrl: '.'
};
var requirejsArgs = requirejsArgs || {
dojoLocation: '../../../../..'
};
var ready = 0;
var dojoConfig = {
async: testArgs.async,
baseUrl: testArgs.baseUrl || '.',
packages: [
{ name: 'testing', location: requirejsArgs.dojoLocation },
{ name: 'dojo', location: requirejsArgs.dojoLocation + '/node_modules/dojo' },
{ name: 'dojox', location: requirejsArgs.dojoLocation + '/node_modules/dojo/../dojox' }
],
has: {
'dojo-requirejs-api': 1,
'config-tlmSiblingOfDojo': 0
}
};
if (typeof require !== 'undefined') {
(function () {
for (var p in require) {
dojoConfig[p] = require[p];
}
})();
}
(function () {
var callback = dojoConfig.callback;
dojoConfig.callback = function () {
callback && callback.apply(this, arguments);
ready = 1;
};
})();