From cb82da27fc37ebe74aa9678506e72eb1a7308ca3 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Thu, 28 Apr 2011 00:39:52 +0200 Subject: Use self.on and self.postMessage instead of global on and postMessage. The reason is https://bugzilla.mozilla.org/show_bug.cgi?id=635748 and effort to save the world from global variables in content scripts. --- data/lib/cc-context.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'data/lib/cc-context.js') diff --git a/data/lib/cc-context.js b/data/lib/cc-context.js index 38397a9..81b0a2d 100644 --- a/data/lib/cc-context.js +++ b/data/lib/cc-context.js @@ -1,8 +1,8 @@ -on('click', function(node, data) { +self.on('click', function(node, data) { var style = document.getElementById("bztw_cc"); style.disabled = !style.disabled; }); -on('context', function(node) { +self.on('context', function(node) { return onBugzillaPage(document.URL); }); -- cgit