Skip to content
This repository was archived by the owner on Mar 13, 2018. It is now read-only.

Commit 487be9f

Browse files
committed
wrap example should use properties
1 parent e3385da commit 487be9f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@ There are bound to be cases where we haven't done the wrapping for you. In those
9090

9191
ex:
9292

93-
wrap(document).addEventListener(...)
93+
wrap(document.body)
94+
// or get body of the wrapped document
95+
wrap(document).body
96+
9497
unwrap(div).firstChild instanceof HTMLElement
9598

9699
If you plan to work with elements that need to be wrapped over and over, try passing a wrapped version of the element into an immediately-invoked function expression.

0 commit comments

Comments
 (0)