Closed Bug 1110572 Opened 10 years ago Closed 10 years ago

We should check the existance of a listener in this._listeners instead of listeners

Categories

(Firefox OS Graveyard :: RIL, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bhsu, Assigned: bhsu)

Details

Attachments

(1 file, 1 obsolete file)

This bug is an implementation defect in MobileConnectionService.js. Everytime before we notify a listener, we should check the existance of the listener in this._listeners, the array which records the current registered listeners, instead of listeners.
Assignee: nobody → bhsu
Attachment #8535405 - Flags: review?(echen)
Comment on attachment 8535405 [details] [diff] [review]
Check the existance of a listener in this._listeners.

Review of attachment 8535405 [details] [diff] [review]:
-----------------------------------------------------------------

Nice catch, Ben!!
Please remember to add `r=edgar` in commit message. :)
Thank you.
Attachment #8535405 - Flags: review?(echen) → review+
Attached patch Patch-1Splinter Review
Attachment #8535405 - Attachment is obsolete: true
Attachment #8537667 - Flags: review+
https://hg.mozilla.org/mozilla-central/rev/bea91a0b4dfb
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: