diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-04-28 00:39:52 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2011-04-28 00:46:45 +0200 |
commit | 4964705f6918eda4cf4c310d261d95242bd2f0ad (patch) | |
tree | 335ea177b9e437ce5cf17449b56efec0d4f75487 /data/lib/addAttachmentRow.js | |
parent | bc4c8cfcc7bb9814a0a4ce73d402e37fa7c0eedd (diff) | |
download | bugzilla-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/addAttachmentRow.js')
-rw-r--r-- | data/lib/addAttachmentRow.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/data/lib/addAttachmentRow.js b/data/lib/addAttachmentRow.js index 13ad226..204192e 100644 --- a/data/lib/addAttachmentRow.js +++ b/data/lib/addAttachmentRow.js @@ -30,7 +30,7 @@ function addAttachment(data, callback, param) { nomail: true }); - postMessage(new Message("MakeXMLRPCall", { + self.postMessage(new Message("MakeXMLRPCall", { url: constantData.XMLRPCData[window.location.hostname].url, login: getLogin(), method: "bugzilla.addAttachment", |