Skip to content

Commit

Permalink
enable moz in javascript worker
Browse files Browse the repository at this point in the history
  • Loading branch information
nightwing committed Jul 18, 2013
1 parent 6788031 commit 2a8619e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
1 change: 1 addition & 0 deletions lib/ace/mode/javascript_worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ oop.inherits(JavaScriptWorker, Mirror);
// unused: true,
es5: true,
esnext: true,
moz: true,
devel: true,
browser: true,
node: true,
Expand Down
18 changes: 8 additions & 10 deletions lib/ace/worker/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,15 @@ if (typeof window.window != "undefined" && window.document) {
return;
}

window.console = {
log: function() {
var msgs = Array.prototype.slice.call(arguments, 0);
postMessage({type: "log", data: msgs});
},
error: function() {
var msgs = Array.prototype.slice.call(arguments, 0);
postMessage({type: "log", data: msgs});
},
trace: function() {}
window.console = function() {
var msgs = Array.prototype.slice.call(arguments, 0);
postMessage({type: "log", data: msgs});
};
window.console.error =
window.console.warn =
window.console.log =
window.console.trace = window.console;

window.window = window;
window.ace = window;

Expand Down

0 comments on commit 2a8619e

Please sign in to comment.