@@ -180,7 +180,7 @@ angular.module('ui.bootstrap.modal', ['ui.bootstrap.transition'])
180
180
} ) ;
181
181
} else {
182
182
// Ensure this call is async
183
- $timeout ( afterAnimating , 0 ) ;
183
+ $timeout ( afterAnimating ) ;
184
184
}
185
185
186
186
function afterAnimating ( ) {
@@ -296,7 +296,7 @@ angular.module('ui.bootstrap.modal', ['ui.bootstrap.transition'])
296
296
297
297
function getResolvePromises ( resolves ) {
298
298
var promisesArr = [ ] ;
299
- angular . forEach ( resolves , function ( value , key ) {
299
+ angular . forEach ( resolves , function ( value ) {
300
300
if ( angular . isFunction ( value ) || angular . isArray ( value ) ) {
301
301
promisesArr . push ( $q . when ( $injector . invoke ( value ) ) ) ;
302
302
}
@@ -340,7 +340,7 @@ angular.module('ui.bootstrap.modal', ['ui.bootstrap.transition'])
340
340
modalScope . $close = modalInstance . close ;
341
341
modalScope . $dismiss = modalInstance . dismiss ;
342
342
343
- var ctrlInstance , ctrlLocals = { } ;
343
+ var ctrlLocals = { } ;
344
344
var resolveIter = 1 ;
345
345
346
346
//controllers
@@ -351,7 +351,7 @@ angular.module('ui.bootstrap.modal', ['ui.bootstrap.transition'])
351
351
ctrlLocals [ key ] = tplAndVars [ resolveIter ++ ] ;
352
352
} ) ;
353
353
354
- ctrlInstance = $controller ( modalOptions . controller , ctrlLocals ) ;
354
+ $controller ( modalOptions . controller , ctrlLocals ) ;
355
355
}
356
356
357
357
$modalStack . open ( modalInstance , {
0 commit comments