From cdf6a08be5d73d45da48b4e87c46ff47d2b5df0a Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Wed, 2 Feb 2011 18:11:03 +0100 Subject: [PATCH] small worker fixes --- lib/ace/worker/worker.js | 3 ++- lib/ace/worker/worker_client.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ace/worker/worker.js b/lib/ace/worker/worker.js index cb449ffd..a7a555d9 100644 --- a/lib/ace/worker/worker.js +++ b/lib/ace/worker/worker.js @@ -19,9 +19,10 @@ var require = function(id) { var chunks = id.split("/"); chunks[0] = require.tlns[chunks[0]] || chunks[0]; - path = require.baseUrl + "/" + chunks.join("/") + ".js" + path = /*require.baseUrl + "/" +*/ chunks.join("/") + ".js" require.id = id; +// console.log("require " + path + " " + id) importScripts(path); return require(id); }; diff --git a/lib/ace/worker/worker_client.js b/lib/ace/worker/worker_client.js index f98e5a1e..44cb453b 100644 --- a/lib/ace/worker/worker_client.js +++ b/lib/ace/worker/worker_client.js @@ -42,6 +42,7 @@ var WorkerClient = function(baseUrl, topLevelNamespaces, packagedJs, module, cla var _self = this; this.$worker.onerror = function(e) { + console.log(e); throw e; }; this.$worker.onmessage = function(e) {