incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Filip Maj <...@adobe.com>
Subject Re: Network online/offline events on document or window?
Date Wed, 07 Mar 2012 17:44:13 GMT
Looks like docs specify they should be on document:

http://docs.phonegap.com/en/1.5.0/phonegap_events_events.md.html#online


Very very likely I messed up :)

I will patch shortly.

Good catch!

On 3/7/12 9:36 AM, "Drew Walters" <deedubbu@gmail.com> wrote:

>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/netw
>ork.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/maste
>r/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