-// Copyright (c) 2008-2012 Kris Maglione <maglione.k@gmail.com>
+// Copyright (c) 2008-2014 Kris Maglione <maglione.k@gmail.com>
//
// This work is licensed for reuse under an MIT license. Details are
// given in the LICENSE.txt file included with this file.
originalURI: orig,
- asyncOpen: function () { throw error || Cr.NS_ERROR_FILE_NOT_FOUND },
+ asyncOpen: function () { throw error || Cr.NS_ERROR_FILE_NOT_FOUND; },
- open: function () { throw error || Cr.NS_ERROR_FILE_NOT_FOUND }
+ open: function () { throw error || Cr.NS_ERROR_FILE_NOT_FOUND; }
}).data.QueryInterface(Ci.nsIChannel);
}
function RedirectChannel(to, orig, time, message) {
contentBase: contentBase,
- _xpcom_factory: JSMLoader.Factory(Protocol),
+ _xpcom_factory: JSMLoader.Factory(Protocol)
};
return Protocol;
}
};
function LocaleChannel(pkg, locale, path, orig) {
- for each (let locale in [locale, "en-US"])
- for each (let sep in "-/") {
+ for (let locale of [locale, "en-US"])
+ for (let sep of "-/") {
var channel = Channel(["resource:/", pkg + sep + locale, path].join("/"), orig, true, true);
if (channel)
return channel;
endModule();
-// vim: set fdm=marker sw=4 ts=4 et ft=javascript:
+// vim: set fdm=marker sw=4 sts=4 ts=8 et ft=javascript: