aboutsummaryrefslogtreecommitdiffstats
path: root/data/lib/cc-context.js
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2011-04-28 00:39:52 +0200
committerMatěj Cepl <mcepl@redhat.com>2011-04-28 00:46:45 +0200
commit4964705f6918eda4cf4c310d261d95242bd2f0ad (patch)
tree335ea177b9e437ce5cf17449b56efec0d4f75487 /data/lib/cc-context.js
parentbc4c8cfcc7bb9814a0a4ce73d402e37fa7c0eedd (diff)
downloadbugzilla-triage-4964705f6918eda4cf4c310d261d95242bd2f0ad.tar.gz
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.
Diffstat (limited to 'data/lib/cc-context.js')
-rw-r--r--data/lib/cc-context.js4
1 files changed, 2 insertions, 2 deletions
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);
});