Skip to content

Commit a9d6fda

Browse files
committed
better example
1 parent 8f6fda3 commit a9d6fda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ Respond to the DOM being ready in different JS modules without binding multiple
1717
```javascript
1818
import ready from 'one-ready'
1919

20-
// multiple files
21-
ready().then(() => console.log('Only one event handler is bound.'))
20+
ready().then(() => console.log('Only one DOMContentLoaded event handler is bound.'))
21+
ready().then(() => console.log('Even if imported and called in other modules.'))
2222
```
2323

2424
## See Also

0 commit comments

Comments
 (0)