Skip to content

Commit

Permalink
Added configurable property to elements for re-use (#2489)
Browse files Browse the repository at this point in the history
  • Loading branch information
NoirHusky committed Sep 9, 2022
1 parent ed45619 commit ebda039
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/js/controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -1718,6 +1718,7 @@ const controls = {
button.setAttribute('aria-pressed', 'false');

Object.defineProperty(button, 'pressed', {
configurable: true,
enumerable: true,
get() {
return hasClass(button, className);
Expand Down

0 comments on commit ebda039

Please sign in to comment.