intl-load.html revision 281ff1d41e1f8e7933317c432fbdfa16be18501a
<html>
<head>
<title>Loader Intl Order Test</title>
</head>
<body>
<script>
// WORKS OK
YUI({filter:"raw"}).use("datatype-date", function(Y) {
Y.log("use datatype-date directly (works fine):" + Y.DataType.Date.format(new Date(), {format:"%e %b"}));
});
// DOESN'T WORK. Seems like "intl" is coming in too late, after the lang pack
YUI({
filter:"raw",
modules : {
mymod: {
type : "js",
fullpath : "mymod.js",
requires: ["datatype-date"]
}
}
}).use(/* FIXES THE ISSUE: "datatype-date",*/ "mymod", function(Y) {
Y.log("module which requires datatype-date:" + Y.MyMod.formatDate());
});
</script>
</body>
</html>