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 22
33module . exports = one ;
44
5- var has = require ( 'has' ) ;
65var all = require ( './all' ) ;
76
7+ var own = { } . hasOwnProperty ;
8+
89function one ( h , node , parent ) {
910 var fn = null ;
1011
11- if ( node . type === 'element' && has ( h . handlers , node . tagName ) ) {
12+ if ( node . type === 'element' && own . call ( h . handlers , node . tagName ) ) {
1213 fn = h . handlers [ node . tagName ] ;
13- } else if ( has ( h . handlers , node . type ) ) {
14+ } else if ( own . call ( h . handlers , node . type ) ) {
1415 fn = h . handlers [ node . type ] ;
1516 }
1617
Original file line number Diff line number Diff line change 2727 ],
2828 "main" : " index.js" ,
2929 "dependencies" : {
30- "has" : " ^1.0.1" ,
3130 "hast-util-has-property" : " ^1.0.0" ,
3231 "hast-util-is-element" : " ^1.0.0" ,
3332 "hast-util-to-string" : " ^1.0.0" ,
You can’t perform that action at this time.
0 commit comments