diff --git a/lib/ace/config.js b/lib/ace/config.js index bfb9e797..66818587 100644 --- a/lib/ace/config.js +++ b/lib/ace/config.js @@ -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() {