mozilla-b2g/gaia — pull request #10294 by wanderview (2013-06-10 14:23:44+00:00)
Title: Bug 880390: Only add 'callschanged' listener once.

On b2g18 after bug 823958, adding an event listener can trigger another
event. Since the callschanged listener is added from an event, this
can cause an infinite loop.

The simplest solution, recommended by :bent, is to avoid adding the listener
if its already registered.