intl-load.html revision ef0b06d03a97288df1750f9c3b70d149093a2969
<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>