Skip to content

Commit 1f82021

Browse files
feat(rdom): update $attribs() to return element
1 parent 859521a commit 1f82021

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/rdom/src/dom.ts

+1
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ export const $attribs = (el: Element, attribs: any) => {
300300
for (let id in attribs) {
301301
setAttrib(el, id, attribs[id], attribs);
302302
}
303+
return el;
303304
};
304305

305306
const setAttrib = (el: Element, id: string, val: any, attribs: any) => {

0 commit comments

Comments
 (0)