incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Drew Walters <deedu...@gmail.com>
Subject Network online/offline events on document or window?
Date Wed, 07 Mar 2012 17:36:54 GMT
Looks like cordova-js has changed the online/offline network events to
fire on the window instead of document:

cordova-js uses cordova.fireWindowEvent:
    https://github.com/apache/incubator-cordova-js/blob/master/lib/plugin/network.js

Old implementations used Cordova.fireDocumentEvent:
    https://github.com/apache/incubator-cordova-android/blob/master/framework/assets/js/network.js
    https://github.com/apache/incubator-cordova-blackberry-webworks/blob/master/javascript/network.js

Was this intentional?  I can't tell from the published version of the
spec which is correct:
    http://www.w3.org/TR/2011/WD-netinfo-api-20110607/

Mime
View raw message