File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 44var information = require ( 'property-information' ) ;
55var camelcase = require ( 'camelcase' ) ;
66var vfileLocation = require ( 'vfile-location' ) ;
7- var has = require ( 'has' ) ;
87var h = require ( 'hastscript' ) ;
98
109/* Expose. */
1110module . exports = wrapper ;
1211
12+ var own = { } . hasOwnProperty ;
13+
1314/* Handlers. */
1415var map = {
1516 '#document' : root ,
@@ -41,7 +42,7 @@ function wrapper(ast, options) {
4142
4243/* Transform a node. */
4344function transform ( ast , config ) {
44- var fn = has ( map , ast . nodeName ) ? map [ ast . nodeName ] : element ;
45+ var fn = own . call ( map , ast . nodeName ) ? map [ ast . nodeName ] : element ;
4546 var children ;
4647 var node ;
4748 var position ;
Original file line number Diff line number Diff line change 2020 ],
2121 "dependencies" : {
2222 "camelcase" : " ^3.0.0" ,
23- "has" : " ^1.0.1" ,
2423 "hastscript" : " ^3.0.0" ,
2524 "property-information" : " ^3.1.0" ,
2625 "vfile-location" : " ^2.0.0"
You can’t perform that action at this time.
0 commit comments