Resolving close promise on close instead of after timeout.
Modal service for AngularJS - supports creating popups and modals via a service.
Brought to you by:
evanfcrane
Originally created by: JoshKoberstein
The documentation states that the close promise is resolved as soon as the modal close function is called. It seems to me that it should be resolved as soon as the close function is called instead of inside the delay timeout function.