fix($ionicModal): make it use jqLite#remove()

Closes #1138
This commit is contained in:
Andy Joslin
2014-04-15 19:46:55 -06:00
parent 1d0a4f1799
commit 104c642019

View File

@@ -163,7 +163,7 @@ function($rootScope, $document, $compile, $timeout, $ionicPlatform, $ionicTempla
return self.hide().then(function() {
self.scope.$destroy();
self.el && self.el.parentElement && self.el.parentElement.removeChild(self.el);
angular.element(self.el).remove();
});
},