rename host.js to worker.js

This commit is contained in:
Fabian Jakobs 2011-01-27 20:05:05 +01:00
commit ed763c17bd
3 changed files with 5 additions and 5 deletions

View file

@ -91,7 +91,7 @@ copy({
{
root: aceHome + '/lib',
include: /.*\.js$/,
exclude: /tests?\/|theme\/|mode\/|ace\/worker\/host\.js/
exclude: /tests?\/|theme\/|mode\/|ace\/worker\/worker\.js/
},
{ base: aceHome + '/lib/', path: 'ace/theme/textmate.js' },
{ base: aceHome + '/lib/', path: 'ace/mode/text.js' },
@ -148,11 +148,11 @@ copy({
// Create worker bootstrap code
copy({
source: "lib/ace/worker/host.js",
source: "lib/ace/worker/worker.js",
filter: [function(data) {
return data + "\nimportScripts('ace-uncompressed.js')";
}],
dest: 'build/host.js'
dest: 'build/worker.js'
});

View file

@ -16,10 +16,10 @@ var WorkerClient = function(baseUrl, topLevelNamespaces, module, classname) {
this.callbacks = [];
if (require.packaged) {
var worker = this.$worker = new Worker("host.js");
var worker = this.$worker = new Worker("worker.js");
}
else {
var workerUrl = require.nameToUrl("ace/worker/host", null, "_");
var workerUrl = require.nameToUrl("ace/worker/worker", null, "_");
var worker = this.$worker = new Worker(workerUrl);
var tlns = {};