phonegap/phonegap-iphone — Issue #314: "resume" event fires when "pause" is triggered
Author: tifroz
Created: 2011-10-11 15:28:04+00:00
State: open

Setting up the resume listener within the "pause" handler causes the resume event to fire upon "pause"

```javascript
document.addEventListener("pause", function() {
//Do something
document.addEventListener("resume", function(){
//The code here wil actually execute when "pause" is triggered!!!
},false);
}, false);
```