fix(ionNavBackButton): stop flicker when pressing back on ios

This commit is contained in:
Andrew Joslin
2014-06-11 16:06:56 -06:00
parent c30be67f65
commit cec3a42236
6 changed files with 18 additions and 25 deletions

View File

@@ -25,10 +25,9 @@ function($scope, $element, $attrs, $ionicViewService, $animate, $compile, $ionic
$element[0].querySelector('.buttons.right-buttons')
);
this.back = function(e) {
this.back = function() {
var backView = $ionicViewService.getBackView();
backView && backView.go();
e && (e.alreadyHandled = true);
return false;
};