Skip to content

Commit 6a27a39

Browse files
committed
Refactor to shout less
1 parent ff94fca commit 6a27a39

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

index.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ var has = require('hast-util-has-property')
44

55
module.exports = interactive
66

7-
/* Always interactive nodes. */
8-
var INTERACTIVE = [
7+
// Always interactive nodes.
8+
var alwaysInteractive = [
99
'button',
1010
'details',
1111
'embed',
@@ -16,7 +16,6 @@ var INTERACTIVE = [
1616
'textarea'
1717
]
1818

19-
/* Check if `node` is _interactive_. */
2019
function interactive(node) {
2120
var name
2221

@@ -34,6 +33,6 @@ function interactive(node) {
3433
(name === 'img' && has(node, 'useMap')) ||
3534
(name === 'input' && (node.properties || {}).type !== 'hidden') ||
3635
has(node, 'tabIndex') ||
37-
INTERACTIVE.indexOf(name) !== -1
36+
alwaysInteractive.indexOf(name) !== -1
3837
)
3938
}

0 commit comments

Comments
 (0)