File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
module . exports = one ;
4
4
5
- var has = require ( 'has' ) ;
6
5
var all = require ( './all' ) ;
7
6
7
+ var own = { } . hasOwnProperty ;
8
+
8
9
function one ( h , node , parent ) {
9
10
var fn = null ;
10
11
11
- if ( node . type === 'element' && has ( h . handlers , node . tagName ) ) {
12
+ if ( node . type === 'element' && own . call ( h . handlers , node . tagName ) ) {
12
13
fn = h . handlers [ node . tagName ] ;
13
- } else if ( has ( h . handlers , node . type ) ) {
14
+ } else if ( own . call ( h . handlers , node . type ) ) {
14
15
fn = h . handlers [ node . type ] ;
15
16
}
16
17
Original file line number Diff line number Diff line change 27
27
],
28
28
"main" : " index.js" ,
29
29
"dependencies" : {
30
- "has" : " ^1.0.1" ,
31
30
"hast-util-has-property" : " ^1.0.0" ,
32
31
"hast-util-is-element" : " ^1.0.0" ,
33
32
"hast-util-to-string" : " ^1.0.0" ,
You can’t perform that action at this time.
0 commit comments