]>
git.proxmox.com Git - extjs.git/blob - extjs/packages/legacy/modern/src/device/connection/Cordova.js
4 Ext
.define('Ext.device.connection.Cordova', {
5 alternateClassName
: 'Ext.device.connection.PhoneGap',
6 extend
: 'Ext.device.connection.Abstract',
8 constructor: function() {
11 document
.addEventListener('online', function() {
12 me
.fireEvent('online', me
);
15 document
.addEventListener('offline', function() {
16 me
.fireEvent('offline', me
);
20 syncOnline: function() {
21 var type
= navigator
.connection
.type
;
23 this._online
= type
!= Connection
.NONE
;
26 getOnline: function() {