Skip to content

Commit c72c65d

Browse files
committed
fix: typo hasAttributes to hasAttribute
1 parent c3f4914 commit c72c65d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

demo/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ <h6 style='color:blue'>7 example SELECT (show multiples)</h6>
127127
<div class='ctr_check1' hidden> CHECK4</div>
128128
<div id='ctr_other1' hidden> OTHER</div>
129129

130-
<div hide='iframe;,#testdiv1' show='iframe;#testdiv1,#testdiv1'>
130+
<div hide='iframe;,#testdiv1' show='iframe;,#testdiv1'>
131131
<div class="test">click me</div>
132132
</div>
133133

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ function clickShowHideEle(e) {
8888
let updated_els = [];
8989

9090
for (let el of queryFrameSelectorAll(show)) {
91-
if (el.hasAttributes('hidden')) {
91+
if (el.hasAttribute('hidden')) {
9292
el.removeAttribute('hidden');
9393
updated_els.push(el);
9494
}

0 commit comments

Comments
 (0)