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

Commit

Permalink
wrap example should use properties
Browse files Browse the repository at this point in the history
  • Loading branch information
robdodson committed Jul 21, 2014
1 parent e3385da commit 487be9f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ There are bound to be cases where we haven't done the wrapping for you. In those

ex:

wrap(document).addEventListener(...)
wrap(document.body)
// or get body of the wrapped document
wrap(document).body

unwrap(div).firstChild instanceof HTMLElement

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.
Expand Down

0 comments on commit 487be9f

Please sign in to comment.