Skip to content

Commit

Permalink
The fix in e7ce13d is no longer needed (and may have been causing oth…
Browse files Browse the repository at this point in the history
…er bugs) so let's remove it.
  • Loading branch information
djl committed Nov 11, 2011
1 parent 1a93b08 commit 5835769
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions data/dotjs.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
(function($) {

self.on("message", function(msg) {
var _window = new XPCNativeWrapper(content, "window").wrappedJSObject;

(function(window, document) {
self.on("message", function(msg) {
if (msg.js) {
eval(msg.js);
}
if (msg.coffee) {
eval(msg.transpiler);
eval(this.CoffeeScript.compile(msg.coffee));
(function() {
eval(msg.transpiler);
}).call(window); // coffee-script.js assumes this === window
eval(CoffeeScript.compile(msg.coffee));
}
}).call(_window, _window, _window.document);
if (msg.css) {
$('head').append($('<style>').text(msg.css));
}
});

self.postMessage(document.URL);

if (msg.css) {
$('head').append($('<style>').text(msg.css));
}
});
self.postMessage(document.URL);
}(jQuery.noConflict(true)));

0 comments on commit 5835769

Please sign in to comment.