mozilla-b2g/gaia — pull request #16208 by gabrielesvelto (2014-02-12 10:45:16+00:00)
Title: Bug 970879 - Prevent redundant listeners from being registered during testing

- Refactored the WapPushManager object to not use bound functions for
event listeners
- Modified the unit-tests to improve control over the document visibility