@@ -11,7 +11,7 @@ module.exports = factory
11
11
function factory ( schema , defaultTagName ) {
12
12
return h
13
13
14
- /* Hyperscript compatible DSL for creating virtual hast trees. */
14
+ // Hyperscript compatible DSL for creating virtual hast trees.
15
15
function h ( selector , properties ) {
16
16
var node = parseSelector ( selector , defaultTagName )
17
17
var children = Array . prototype . slice . call ( arguments , 2 )
@@ -43,7 +43,7 @@ function factory(schema, defaultTagName) {
43
43
var property
44
44
var result
45
45
46
- /* Ignore nully and NaN values. */
46
+ // Ignore nully and NaN values.
47
47
if ( value === null || value === undefined || value !== value ) {
48
48
return
49
49
}
@@ -52,7 +52,7 @@ function factory(schema, defaultTagName) {
52
52
property = info . property
53
53
result = value
54
54
55
- /* Handle list values. */
55
+ // Handle list values.
56
56
if ( typeof result === 'string' ) {
57
57
if ( info . spaceSeparated ) {
58
58
result = spaces ( result )
@@ -63,12 +63,12 @@ function factory(schema, defaultTagName) {
63
63
}
64
64
}
65
65
66
- /* Accept `object` on style. */
66
+ // Accept `object` on style.
67
67
if ( property === 'style' && typeof value !== 'string' ) {
68
68
result = style ( result )
69
69
}
70
70
71
- /* Class-names (which can be added both on the `selector` and here). */
71
+ // Class-names (which can be added both on the `selector` and here).
72
72
if ( property === 'className' && properties . className ) {
73
73
result = properties . className . concat ( result )
74
74
}
@@ -137,7 +137,7 @@ function addChild(nodes, value) {
137
137
nodes . push ( value )
138
138
}
139
139
140
- /* Parse a (list of) primitives. */
140
+ // Parse a (list of) primitives.
141
141
function parsePrimitives ( info , name , value ) {
142
142
var index
143
143
var length
@@ -158,7 +158,7 @@ function parsePrimitives(info, name, value) {
158
158
return result
159
159
}
160
160
161
- /* Parse a single primitives. */
161
+ // Parse a single primitives.
162
162
function parsePrimitive ( info , name , value ) {
163
163
var result = value
164
164
@@ -167,7 +167,7 @@ function parsePrimitive(info, name, value) {
167
167
result = Number ( result )
168
168
}
169
169
} else if ( info . boolean || info . overloadedBoolean ) {
170
- /* Accept `boolean` and `string`. */
170
+ // Accept `boolean` and `string`.
171
171
if (
172
172
typeof result === 'string' &&
173
173
( result === '' || normalize ( value ) === normalize ( name ) )
0 commit comments