Disabling UI when offline.

This commit is contained in:
Ben Vanik
2013-12-25 06:43:08 -08:00
parent 062610c596
commit 20249c2290
6 changed files with 60 additions and 2 deletions

View File

@@ -146,6 +146,12 @@ module.service('Session', function(
}
this.dataSource = dataSource;
this.dataSource.on('online', function() {
//
}, this);
this.dataSource.on('offline', function() {
this.setDataSource(null);
}, this);
var ps = [];