Closed DougKeller closed 5 years ago
Merging #259 into master will increase coverage by
0.91%
. The diff coverage is100%
.
@@ Coverage Diff @@
## master #259 +/- ##
==========================================
+ Coverage 85.32% 86.23% +0.91%
==========================================
Files 1 1
Lines 109 109
==========================================
+ Hits 93 94 +1
+ Misses 16 15 -1
Impacted Files | Coverage Δ | |
---|---|---|
src/angular-modal-service.js | 86.23% <100%> (+0.91%) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 06a7b74...29ef82a. Read the comment docs.
Excellent, thank you @DougKeller!
Addresses issue #258
Solution
hasAlreadyBeenClosed
guard clase to the beginning of the modal'sclose
function$locationChangeSuccess
, call the sameclose
function so that closing the modal is always done the same wayImplications of this solution
$on('$locationChangeSuccess')
now callsinputs.close
rather thancleanUpClose
,preClose
will be called on$locationChangeSuccess
as well. This seems like an enhancement to me, but it is different from how it behaved before.