Update loader.js

This commit is contained in:
Guy Bedford 2013-06-27 16:56:59 -07:00
parent d2b29d26ca
commit 33a27c584f

View File

@ -185,7 +185,7 @@
}
// then just use standard resolution
return System.resolve(name, options);
return System.resolve.call(this, name, options);
},
fetch: function(url, callback, errback, options) {
// do a fetch with a timeout
@ -391,7 +391,7 @@
return normalized;
},
resolve: function(name, options) {
var resolved = loaderHooks.resolve(name, options);
var resolved = loaderHooks.resolve.call(this, name, options);
if (options.metadata && options.metadata.plugin) {
if (resolved.address)
resolved.address = resolved.address.substr(0, resolved.address.length - 1);