It seems current loader spec is so simple and I'm full of confusion of
baseURL props.
// lib/a.js
System.baseURL // "lib/a.js" ??
System.load('b.js', ...) // I suppose this should load "lib/b.js", right?
var myLoader = new Loader(System, { baseURL: 'mypath/c.js' , fetch:myFetch })
myLoader.baseURL // 'mypath/c.js' or 'lib/mypath/c.js' or any other value?
myLoader.load('b.js' ...) // load 'lib/mypath/b.js' or 'lib/b.js' ?
function myFetch(relURL, baseURL, ...) {
relURL // 'b.js' or 'mypath/b.js' or any other value?
baseURL // ?
}
and what happens if I call myLoader in other code for example which
url is '/otherpath/' ?
--
hax
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss