Skip to content

Commit 5b81863

Browse files
author
Ola Holmström
committed
Fix readme to show what is returned as root element.
1 parent 9188bea commit 5b81863

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Internally, the root scrolling element is determined in this library
2828
as the result of
2929

3030
```js
31-
document.scrollingElement || document.htmlElement
31+
document.scrollingElement || document.documentElement;
3232
```
3333

3434
This should give a usable result in most browsers today

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"scrollparent.js"
55
],
66
"dependencies": {},
7-
"version": "2.0.0",
7+
"version": "2.0.1",
88
"homepage": "https://github.com/olahol/scrollparent.js",
99
"description": "A function to get the scrolling parent of an html element.",
1010
"keywords": [

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "scrollparent",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "A function to get the scrolling parent of an html element.",
55
"main": "scrollparent.js",
66
"repository": {

0 commit comments

Comments
 (0)