Skip to content

Commit 99b1dd0

Browse files
committed
Merge remote changes, add .gitattributes
2 parents 70c8244 + 3b23a91 commit 99b1dd0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Observe element size changes and callback before and after layout reflow has occured.
33

44
## API
5-
`ReflowObserver` wraps around [`ResizeObserver`](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver). It provides the same basic interface as with a few subtle differences, listed below.
5+
`ReflowObserver` wraps around [`ResizeObserver`](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver). It provides the same basic interface with a few subtle differences, listed below.
66

77
### Constructor Differences
88
`ResizeObserver` takes a callback as it's only argument.
@@ -23,7 +23,7 @@ const observer = new ReflowObserver(
2323
function afterReflow(timestamp) { console.log(timestamp, 'reflow complete', this); }
2424
);
2525

26-
observer.observe(doument.body);
26+
observer.observe(document.body);
2727
```
2828

2929
A well commented example implementation is contained in this repository. Find it at `./example.html`.

0 commit comments

Comments
 (0)