mozilla-b2g/gaia — pull request #6951 by KevinGrandon (2012-12-11 16:10:46+00:00)
Title: Bug 806003 -  Wait for components ready before enabling airplane mode

Trying this again.

This patch will fire a "radiostateready" when components are ready which will enable the airplane mode switch.

We check on the following events to determine "Readiness", please let me know if there is a better event to check on, but this was as late as I could find:

geolocation: addObserver('geolocation.enabled')
wifi: WifiManager.onenabled || WifiManager.ondisabled
bluetooth: Bluetooth.ondisabled || Bluetooth.onadapteradded