Commit e717048 1 parent 4c4b48d commit e717048 Copy full SHA for e717048
File tree 2 files changed +2
-1
lines changed
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ MyAxeObserver.observe(document.getElementById('vue-header'))
41
41
MyAxeObserver .observe (document .getElementById (' page-footer' ))
42
42
```
43
43
44
- To stop observing changes, invoke the ` disconnect ` method.
44
+ To stop observing changes, invoke the ` disconnect ` method. This also clears the cache of violations that were already reported.
45
45
46
46
``` js
47
47
MyAxeObserver .disconnect ()
Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ export default class AxeObserver {
60
60
}
61
61
disconnect ( ) {
62
62
this . _mutationObserver . disconnect ( )
63
+ this . __alreadyReportedIncidents . clear ( )
63
64
}
64
65
async _auditNode ( node ) {
65
66
const response = await this . _auditQueue . run ( async ( ) => {
You can’t perform that action at this time.
0 commit comments