Skip to content

Commit 0f3146a

Browse files
committed
fix(listenForBind): allow any Node to be given as first param
1 parent cd442ab commit 0f3146a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/bind.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ interface Subscription {
7070
* This returns a Subscription object which you can call `unsubscribe()` on to
7171
* stop further live updates.
7272
*/
73-
export function listenForBind(el = document, batchSize = 30): Subscription {
73+
export function listenForBind(el: Node = document, batchSize = 30): Subscription {
7474
let closed = false
7575

7676
const observer = new MutationObserver(mutations => {

0 commit comments

Comments
 (0)