Reduce moduleUrl conditional

This commit is contained in:
Joshua Peek 2012-07-03 13:26:24 -05:00
commit 13b572927b

View file

@ -78,13 +78,7 @@ exports.moduleUrl = function(name) {
var component = parts[1];
var base = parts[2];
if (component === "mode") {
return this.get("modePath") + "/mode-" + base + this.get("suffix");
} else if (component === "theme") {
return this.get("themePath") + "/theme-" + base + this.get("suffix");
} else if (component === "worker") {
return this.get("workerPath") + "/worker-" + base + this.get("suffix");
}
return this.get(component + "Path") + "/" + component + "-" + base + this.get("suffix");
};
exports.init = function() {