refactor
This commit is contained in:
parent
19419526e4
commit
48a2be626d
6 changed files with 43 additions and 53 deletions
|
|
@ -153,11 +153,11 @@ angular.module('copayApp.directives')
|
|||
link: function(scope, element, attrs) {
|
||||
scope.$on("$ionicSlides.sliderInitialized", function(event, data) {
|
||||
scope.slider = data.slider;
|
||||
scope.$emit('Wallet/Changed', scope.wallets[0]);
|
||||
scope.$emit('Wallet/Changed', scope.wallets ? scope.wallets[0] : null);
|
||||
});
|
||||
|
||||
scope.$on("$ionicSlides.slideChangeEnd", function(event, data) {
|
||||
scope.$emit('Wallet/Changed', scope.wallets[data.slider.activeIndex]);
|
||||
scope.$emit('Wallet/Changed', scope.wallets ? scope.wallets[data.slider.activeIndex] : null);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue