mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
refactor(ionicContent): use $-prefix for onRefresh and onScroll events
Closes #675
This commit is contained in:
@@ -43,12 +43,13 @@ angular.module('ionic.ui.scroll')
|
||||
var refresherHeight = self.refresher.clientHeight || 0;
|
||||
scrollView.activatePullToRefresh(refresherHeight, function() {
|
||||
self.refresher.classList.add('active');
|
||||
$scope.$onRefreshOpening && $scope.$onRefreshOpening();
|
||||
}, function() {
|
||||
self.refresher.classList.remove('refreshing');
|
||||
self.refresher.classList.remove('active');
|
||||
}, function() {
|
||||
self.refresher.classList.add('refreshing');
|
||||
$scope.onRefresh && $scope.onRefresh();
|
||||
$scope.$onRefresh && $scope.$onRefresh();
|
||||
$scope.$parent.$broadcast('scroll.onRefresh');
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user