Removes online/offline events

This commit is contained in:
Gustavo Maximiliano Cortez 2015-06-26 11:55:41 -03:00
commit d02c1a7f11
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
4 changed files with 10 additions and 49 deletions

View file

@ -46,18 +46,6 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
self.resetForm();
});
var disableOnlineListener = $rootScope.$on('Local/Online', function() {
// This is needed then the apps go to sleep
self.bindTouchDown();
});
var disableResumeListener = $rootScope.$on('Local/Resume', function() {
// This is needed then the apps go to sleep
self.bindTouchDown();
});
var disableTabListener = $rootScope.$on('Local/TabChanged', function(e, tab) {
// This will slow down switch, do not add things here!
switch (tab) {
@ -76,8 +64,6 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
disablePaymentUriListener();
disableTabListener();
disableFocusListener();
disableResumeListener();
disableOnlineListener();
$rootScope.hideMenuBar = false;
});