Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: ec8c7e4b7a
Fetching contributors…

Cannot retrieve contributors at this time

48 lines (40 sloc) 0.87 kB
<!DOCTYPE HTML>
<html>
<head>
<title>defineName/defineContext curl test file (2)</title>
<script src="../src/curl.js" type="text/javascript"></script>
<script type="text/javascript">
foo = {};
curl({
defineName: 'defineModule',
defineContext: foo,
paths: {
curl: '../src/curl/'
}
},
['stuff/foo.defineModule']).then(
function (m) {
if (m.msg) {
write('SUCCESS: defineContext and defineName worked');
}
else {
write('FAILED: something went wrong');
}
},
function (ex) {
write('FAILED: ' + ex.message);
}
);
function write (msg) {
// hack to get the domReady! plugin to work:
define = foo.defineModule;
// now we can use domReady!:
curl('domReady!', function () {
document.body.appendChild(document.createElement('div')).innerHTML = msg;
});
}
</script>
</head>
<body>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.