Skip to content

Commit

Permalink
Adds implementation idea from argyleink#47
Browse files Browse the repository at this point in the history
  • Loading branch information
gingerchew committed Jan 17, 2024
1 parent d5f193b commit e58176c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6,630 deletions.
1 change: 1 addition & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
return this
},
attr: function(attr, val) {
attr = attr.replace(/(.)([A-Z])/g, '$1-$2').toLowerCase();
if (val === undefined) return this.getAttribute(attr)

val == null
Expand Down
Loading

0 comments on commit e58176c

Please sign in to comment.