angular-ui-bootstrap: update to v0.10.0

adds the new dismissAll() function to the $modalStack service
This commit is contained in:
Brian Surowiec 2014-01-13 17:55:26 -05:00
parent 91904e99be
commit 4db2442e18
2 changed files with 8 additions and 1 deletions

View File

@ -162,6 +162,8 @@ testApp.controller('TestCtrl', (
$modalStack.close(modalInstance, 'with reason');
$modalStack.dismiss(modalInstance);
$modalStack.dismiss(modalInstance, 'with reason');
$modalStack.dismissAll();
$modalStack.dismissAll('with reason');
$modalStack.getTop().key.close();

View File

@ -1,4 +1,4 @@
// Type definitions for Angular UI Bootstrap 0.9.0
// Type definitions for Angular UI Bootstrap 0.10.0
// Project: https://github.com/angular-ui/bootstrap
// Definitions by: Brian Surowiec <https://github.com/xt0rted>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
@ -264,6 +264,11 @@ declare module ng.ui.bootstrap {
*/
dismiss(modalInstance: IModalServiceInstance, reason?: any): void;
/**
* Dismiss all open modal instances with an optional reason that will be passed to each instance.
*/
dismissAll(reason?: any): void;
/**
* Gets the topmost modal instance that is open.
*/