File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
3
var zwitch = require ( 'zwitch' ) ;
4
- var has = require ( 'has' ) ;
5
4
6
5
module . exports = zwitch ( 'nestingOperator' ) ;
7
6
7
+ var own = { } . hasOwnProperty ;
8
+
8
9
var handle = module . exports ;
9
10
var handlers = handle . handlers ;
10
11
@@ -199,7 +200,7 @@ function createTypeIndex() {
199
200
200
201
index . elements ++ ;
201
202
202
- if ( ! has ( counts , type ) ) {
203
+ if ( ! own . call ( counts , type ) ) {
203
204
counts [ type ] = 0 ;
204
205
}
205
206
@@ -208,6 +209,6 @@ function createTypeIndex() {
208
209
}
209
210
210
211
function count ( node ) {
211
- return has ( counts , node . tagName ) ? counts [ node . tagName ] : 0 ;
212
+ return own . call ( counts , node . tagName ) ? counts [ node . tagName ] : 0 ;
212
213
}
213
214
}
Original file line number Diff line number Diff line change 23
23
"camelcase" : " ^3.0.0" ,
24
24
"comma-separated-tokens" : " ^1.0.2" ,
25
25
"css-selector-parser" : " ^1.3.0" ,
26
- "has" : " ^1.0.1" ,
27
26
"hast-util-has-property" : " ^1.0.0" ,
28
27
"hast-util-is-element" : " ^1.0.0" ,
29
28
"hast-util-whitespace" : " ^1.0.0" ,
You can’t perform that action at this time.
0 commit comments