fix(viewSwitcher): do not finish transition from bubbled transitionend events

Closes #3006. Closes #3063.
This commit is contained in:
Andrew
2015-02-09 11:50:28 -07:00
parent 83cc181800
commit 6fa75b7fff
4 changed files with 73 additions and 5 deletions

View File

@@ -29,6 +29,7 @@ function($scope, $element, $attrs, $compile, $controller, $ionicNavBarDelegate,
var transitionDuration, transitionTiming;
self.scope = $scope;
self.element = $element;
self.init = function() {
var navViewName = $attrs.name || '';
@@ -399,7 +400,7 @@ function($scope, $element, $attrs, $compile, $controller, $ionicNavBarDelegate,
ionic.offGesture(deregDragStart, 'dragstart', onDragStart);
ionic.offGesture(deregDrag, 'drag', onDrag);
ionic.offGesture(deregRelease, 'release', onRelease);
viewTransition = associatedNavBarCtrl = null;
self.element = viewTransition = associatedNavBarCtrl = null;
});
};