Skip to content

Commit

Permalink
refactor(modal): remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
pkozlowski-opensource committed May 4, 2014
1 parent 1590920 commit afdefcf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/modal/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ angular.module('ui.bootstrap.modal', ['ui.bootstrap.transition'])
});
} else {
// Ensure this call is async
$timeout(afterAnimating, 0);
$timeout(afterAnimating);
}

function afterAnimating() {
Expand Down Expand Up @@ -296,7 +296,7 @@ angular.module('ui.bootstrap.modal', ['ui.bootstrap.transition'])

function getResolvePromises(resolves) {
var promisesArr = [];
angular.forEach(resolves, function (value, key) {
angular.forEach(resolves, function (value) {
if (angular.isFunction(value) || angular.isArray(value)) {
promisesArr.push($q.when($injector.invoke(value)));
}
Expand Down Expand Up @@ -340,7 +340,7 @@ angular.module('ui.bootstrap.modal', ['ui.bootstrap.transition'])
modalScope.$close = modalInstance.close;
modalScope.$dismiss = modalInstance.dismiss;

var ctrlInstance, ctrlLocals = {};
var ctrlLocals = {};
var resolveIter = 1;

//controllers
Expand All @@ -351,7 +351,7 @@ angular.module('ui.bootstrap.modal', ['ui.bootstrap.transition'])
ctrlLocals[key] = tplAndVars[resolveIter++];
});

ctrlInstance = $controller(modalOptions.controller, ctrlLocals);
$controller(modalOptions.controller, ctrlLocals);
}

$modalStack.open(modalInstance, {
Expand Down

0 comments on commit afdefcf

Please sign in to comment.