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

Commit 8853bd8

Browse files
committed
chore(modal): change to $uibUnscheduledDestruction
- Change to `$uibUnscheduledDestruction` as per comment in #4097
1 parent 0b37f08 commit 8853bd8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: src/modal/docs/readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ In addition the scope associated with modal's content is augmented with 2 method
3535

3636
Those methods make it easy to close a modal window without a need to create a dedicated controller.
3737

38-
If the $scope is destroyed via unexpected mechanism, such as it being passed in the modal options and a $route/$state transition occurs, the modal will be dismissed with the value `$uibModal`.
38+
If the $scope is destroyed via unexpected mechanism, such as it being passed in the modal options and a $route/$state transition occurs, the modal will be dismissed with the value `$uibUnscheduledDestruction`.
3939

4040
Finally, a `modal.closing` event is broadcast to the modal scope before the modal closes. If the listener calls
4141
preventDefault on the event, then the modal will remain open. The $close and $dismiss methods return true if the

Diff for: src/modal/modal.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ angular.module('ui.bootstrap.modal', [])
528528

529529
modalScope.$on('$destroy', function() {
530530
if (!modalScope.$$uibDestructionScheduled) {
531-
modalScope.$dismiss('$uibModal');
531+
modalScope.$dismiss('$uibUnscheduledDestruction');
532532
}
533533
});
534534

0 commit comments

Comments
 (0)