cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From riknoll <...@git.apache.org>
Subject [GitHub] cordova-android pull request: CB-10498: Resume event should be sti...
Date Thu, 04 Feb 2016 18:05:38 GMT
Github user riknoll commented on a diff in the pull request:

    https://github.com/apache/cordova-android/pull/257#discussion_r51911630
  
    --- Diff: cordova-js-src/platform.js ---
    @@ -58,6 +61,19 @@ module.exports = {
             bindButtonChannel('volumeup');
             bindButtonChannel('volumedown');
     
    +        // The resume event is not "sticky", but it is possible that the event
    +        // will contain the result of a plugin call. We need to ensure that the
    +        // plugin result is delivered even after the event is fired (CB-10498)
    +        var cordovaAddEventListener = document.addEventListener;
    --- End diff --
    
    @adamduren We already patch `addEventListener` in the common Cordova js code (hence the
`cordovaAddEventListener` name). See https://github.com/apache/cordova-js/blob/master/src/cordova_b.js#L48
    
    Come to think of it, I should probably be doing the method in window as well. I'll update
the PR. Thanks for taking a look!


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org


Mime
View raw message