You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 13, 2018. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+4-1
Original file line number
Diff line number
Diff line change
@@ -90,7 +90,10 @@ There are bound to be cases where we haven't done the wrapping for you. In those
90
90
91
91
ex:
92
92
93
-
wrap(document).addEventListener(...)
93
+
wrap(document.body)
94
+
// or get body of the wrapped document
95
+
wrap(document).body
96
+
94
97
unwrap(div).firstChild instanceof HTMLElement
95
98
96
99
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