Wouter created CB-683:
-------------------------
Summary: Pause and resume events on Android are fired without
event parameter
Key: CB-683
URL: https://issues.apache.org/jira/browse/CB-683
Project: Apache Cordova
Issue Type: Bug
Components: Android
Affects Versions: 1.7.0, 1.6.1
Environment: Samsung Galaxy S plus (GT-I9001), HTC Desire (htc_bravo)
Reporter: Wouter
Assignee: Joe Bowser
The pause and resume events do not pass an event object to the event handlers.
This event parameter is not optional according to W3C DOM specification
(http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-registration) and
expected by for instance jquery.
Using jquery to bind the event:
$(document).bind('pause', handler);
will cause an exception since jquery will internally request properties of the
event parameter.
A workaround is not to use jquery but simply:
document.addEventListener('pause', handler, false);
The event handler should not be expecting an event parameter in this case.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira