diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-04-28 00:39:52 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2011-06-05 14:46:50 +0200 |
commit | cb82da27fc37ebe74aa9678506e72eb1a7308ca3 (patch) | |
tree | 743209aab4c515fd62c57c7f7982347ff760dec6 /data/lib/fixingAttMIME.js | |
parent | 680ad8225d72703dcdc98a128c7dd4f408a3018b (diff) | |
download | bugzilla-triage-cb82da27fc37ebe74aa9678506e72eb1a7308ca3.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/fixingAttMIME.js')
-rw-r--r-- | data/lib/fixingAttMIME.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/lib/fixingAttMIME.js b/data/lib/fixingAttMIME.js index 99c32f7..a016fe6 100644 --- a/data/lib/fixingAttMIME.js +++ b/data/lib/fixingAttMIME.js @@ -62,7 +62,7 @@ function fixAttachById(id, XMLRPCURL, type, email) { 'nomail' : !email }); - postMessage(new Message("MakeXMLRPCall", { + self.postMessage(new Message("MakeXMLRPCall", { url: XMLRPCURL, login: getLogin(), method: "bugzilla.updateAttachMimeType", |