@@ -180,7 +180,7 @@ angular.module('ui.bootstrap.modal', ['ui.bootstrap.transition'])
180180 } ) ;
181181 } else {
182182 // Ensure this call is async
183- $timeout ( afterAnimating , 0 ) ;
183+ $timeout ( afterAnimating ) ;
184184 }
185185
186186 function afterAnimating ( ) {
@@ -296,7 +296,7 @@ angular.module('ui.bootstrap.modal', ['ui.bootstrap.transition'])
296296
297297 function getResolvePromises ( resolves ) {
298298 var promisesArr = [ ] ;
299- angular . forEach ( resolves , function ( value , key ) {
299+ angular . forEach ( resolves , function ( value ) {
300300 if ( angular . isFunction ( value ) || angular . isArray ( value ) ) {
301301 promisesArr . push ( $q . when ( $injector . invoke ( value ) ) ) ;
302302 }
@@ -340,7 +340,7 @@ angular.module('ui.bootstrap.modal', ['ui.bootstrap.transition'])
340340 modalScope . $close = modalInstance . close ;
341341 modalScope . $dismiss = modalInstance . dismiss ;
342342
343- var ctrlInstance , ctrlLocals = { } ;
343+ var ctrlLocals = { } ;
344344 var resolveIter = 1 ;
345345
346346 //controllers
@@ -351,7 +351,7 @@ angular.module('ui.bootstrap.modal', ['ui.bootstrap.transition'])
351351 ctrlLocals [ key ] = tplAndVars [ resolveIter ++ ] ;
352352 } ) ;
353353
354- ctrlInstance = $controller ( modalOptions . controller , ctrlLocals ) ;
354+ $controller ( modalOptions . controller , ctrlLocals ) ;
355355 }
356356
357357 $modalStack . open ( modalInstance , {
0 commit comments