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 4
4
var information = require ( 'property-information' ) ;
5
5
var camelcase = require ( 'camelcase' ) ;
6
6
var vfileLocation = require ( 'vfile-location' ) ;
7
- var has = require ( 'has' ) ;
8
7
var h = require ( 'hastscript' ) ;
9
8
10
9
/* Expose. */
11
10
module . exports = wrapper ;
12
11
12
+ var own = { } . hasOwnProperty ;
13
+
13
14
/* Handlers. */
14
15
var map = {
15
16
'#document' : root ,
@@ -41,7 +42,7 @@ function wrapper(ast, options) {
41
42
42
43
/* Transform a node. */
43
44
function 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 ;
45
46
var children ;
46
47
var node ;
47
48
var position ;
Original file line number Diff line number Diff line change 20
20
],
21
21
"dependencies" : {
22
22
"camelcase" : " ^3.0.0" ,
23
- "has" : " ^1.0.1" ,
24
23
"hastscript" : " ^3.0.0" ,
25
24
"property-information" : " ^3.1.0" ,
26
25
"vfile-location" : " ^2.0.0"
You can’t perform that action at this time.
0 commit comments