mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
update to use $timeout w/ invokeApply=false
This commit is contained in:
8
js/angular/service/backdrop.js
vendored
8
js/angular/service/backdrop.js
vendored
@@ -34,8 +34,8 @@
|
||||
*/
|
||||
IonicModule
|
||||
.factory('$ionicBackdrop', [
|
||||
'$document',
|
||||
function($document) {
|
||||
'$document', '$timeout',
|
||||
function($document, $timeout) {
|
||||
|
||||
var el = jqLite('<div class="backdrop">');
|
||||
var backdropHolds = 0;
|
||||
@@ -74,9 +74,9 @@ function($document) {
|
||||
function release() {
|
||||
if ( (--backdropHolds) === 0 ) {
|
||||
el.removeClass('active');
|
||||
setTimeout(function() {
|
||||
$timeout(function() {
|
||||
!backdropHolds && el.removeClass('visible');
|
||||
}, 400);
|
||||
}, 400, false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user