Skip to content

Commit

Permalink
refacto(core): do not expose getAttributes function
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzofox3 committed Feb 23, 2024
1 parent 8b40f5e commit ad3f4d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const component = (renderLoop, opts = defaultOptions) => {
};
};

export const getAttributes = (el) =>
const getAttributes = (el) =>
Object.fromEntries(
el.getAttributeNames().map((name) => [name, el.getAttribute(name)]),
);

0 comments on commit ad3f4d3

Please sign in to comment.