Skip to content

Commit b0111bf

Browse files
committed
fix: update observer obseve param to type and and attributeName to attributeFilter
1 parent 5143291 commit b0111bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,10 @@ function getOrCreateMap(element, options = {}) {
194194

195195
Observer.init({
196196
name: "CoCreateElementsChildList",
197-
observe: ["addedNodes"],
197+
types: ["addedNodes"],
198198
selector: name,
199199
callback: function (mutation) {
200-
initElements(mutation.target);
200+
initElements([mutation.target]);
201201
}
202202
});
203203

0 commit comments

Comments
 (0)