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.
32 lines (29 loc) • 840 B
HTML
<html>
<head>
<title>require.js: Config Test</title>
<script>
var s;
var d;
var f;
var require = {
baseUrl: './',
deps: [ 'simple', 'dimple', 'func' ],
callback: function (simple, dimple, func) {
window.testData = {
simpleColor: simple.color,
dimpleColor: dimple.color,
funcOut: func()
};
}
};
</script>
<script type="text/javascript" src="requirejs-setup.js"></script>
<script type="text/javascript" src="../../../../../dojo.js"></script>
</head>
<body>
<h1>require.js: Config Test</h1>
<p>Tests require being defined as an object with init and ready configuration.</p>
<p>Check console for messages.</p>
</body>
</html>