mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
Merge pull request #441 from yelbota/master
fix show() when content is different
This commit is contained in:
6
js/ext/angular/src/service/ionicLoading.js
vendored
6
js/ext/angular/src/service/ionicLoading.js
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user