Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Commit afdefcf

Browse files
refactor(modal): remove unused variables
1 parent 1590920 commit afdefcf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: src/modal/modal.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)