mozilla-b2g/gaia — pull request #5782 by ttaubert (2012-10-11 22:07:53+00:00)
Title: Bug 796461 - Make sure wireless network list is always up-to-date

This patch uses 'transitionend' and 'mozvisibilitychange' to keep track of the wifi section's visibility. While the section is hidden, we'll not scan for new networks but set the pending flag. Once the section becomes visible again and a scan is pending, we kick it off.

The visibility change works for putting the settings apps in the background with the home key, closing the wifi settings and going back to the main settings screen, and locking the screen.