Skip to content
This repository has been archived by the owner on Feb 26, 2022. It is now read-only.

Commit

Permalink
Bug 788981: self.port.removeListener() in a content script isn't func…
Browse files Browse the repository at this point in the history
…tional r=@ochameau
  • Loading branch information
KWierso authored and ochameau committed Sep 6, 2012
1 parent d826800 commit 2190a64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api-utils/lib/content/content-worker.js
Expand Up @@ -30,7 +30,7 @@ const ContentWorker = Object.freeze({
removeListener: function removeListener(name, callback) {
if (!(name in listeners))
return;
let index = listeners[name].indexOf(name);
let index = listeners[name].indexOf(callback);
if (index == -1)
return;
listeners[name].splice(index, 1);
Expand Down

0 comments on commit 2190a64

Please sign in to comment.