fix #822 using urlArgs in require breaks Ace's workers

This commit is contained in:
nightwing 2012-07-11 16:41:18 +04:00
commit 56c77291f7

View file

@ -66,7 +66,7 @@ var WorkerClient = function(topLevelNamespaces, mod, classname) {
var tlns = {};
for (var i=0; i<topLevelNamespaces.length; i++) {
var ns = topLevelNamespaces[i];
var path = this.$normalizePath(require.toUrl(ns, null, "_").replace(/.js$/, ""));
var path = this.$normalizePath(require.toUrl(ns, null, "_").replace(/.js(\?.*)?$/, ""));
tlns[ns] = path;
}