On Mon, Nov 9, 2009 at 3:41 PM, Aaron Boodman <[email protected]> wrote:
>
> function listener() {
>  port.onMessage.removeListener(arguments.callee);
> }
> port.onMessage.addListener(listener);


I think you can also give the function a name without pulling it out to
global scope, ie:

port.onMessage.addListener(function listener() {
 port.onMessage.removeListener(listener);
});

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Chromium-extensions" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/chromium-extensions?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to