callback/callback-android — Issue #3: "resume" subscription auto-triggers the event 
Author: tifroz
Created: 2011-10-27 04:31:13+00:00
State: open

Subscribing to "resume" after the deviceready event was fired causes the "resume" event to fire immediately - i.e. the "resume" event is auto-triggered at the time of subscription.

To reproduce:

```
onResume = function() {
alert('This should only show after device is resumed from suspended state!')
}
onDeviceReady = function() {
// Do stuff..
document.addEventListener("resume", onResume, false)
//Do more stuff
}
document.addEventListener("deviceready", onDeviceReady, false);
```