Merge pull request #441 from yelbota/master

fix show() when content is different
This commit is contained in:
Max Lynch
2014-01-22 07:09:11 -08:00

View File

@@ -27,11 +27,7 @@ angular.module('ionic.service.loading', ['ionic.ui.loading'])
// Make sure there is only one loading element on the page at one point in time
var existing = angular.element($document[0].querySelector('.loading-backdrop'));
if(existing.length) {
scope = existing.scope();
if(scope.loading) {
scope.loading.show();
return scope.loading;
}
existing.remove();
}
// Compile the template