fix(pull to refresh): minor optimization to prevent flicker on deactivate

This commit is contained in:
Perry Govier
2014-09-25 15:47:26 -05:00
parent 11dfb72749
commit 8787760aad
2 changed files with 4 additions and 6 deletions

View File

@@ -221,12 +221,7 @@ function($scope, scrollViewOptions, $timeout, $window, $$scrollValueCache, $loca
refresherScope.$onPulling();
}, function() {
// deactivateCallback
$timeout(function(){
refresher.classList.remove('active');
refresher.classList.remove('refreshing');
refresher.classList.remove('refreshing-tail');
refresher.classList.add('invisible');
},300);
refresher.classList.remove('active', 'refreshing', 'refreshing-tail');
}, function() {
// startCallback
refresher.classList.add('refreshing');