refactor(slideBox): make it so elements are properly removed

This commit is contained in:
Andrew
2014-10-08 16:10:28 -06:00
parent 2cb56283ac
commit 7d2945f95d
3 changed files with 6 additions and 7 deletions

View File

@@ -7,8 +7,7 @@ function(scope, element, $q) {
var self = this;
scope.$on('$destroy', function() {
element.removeData();
detachSlide();
attachSlide();
});
element.on(ionic.CSS.TRANSITIONEND, onTransitionEnd);