fix show() when content is different

This commit is contained in:
Aleksey Fomkin
2014-01-20 21:55:12 +04:00
parent 4289ee852b
commit 9cc329842a

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