Skip to content

Commit 17fe004

Browse files
committed
Use correct method name
1 parent 4b97ca9 commit 17fe004

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/coerce.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ exports.valObjectMeta = {
181181
otherOpts: ['dflt'],
182182
coerceFunction: function(v, propOut, dflt) {
183183
if(!Array.isArray(v) || !v.length) propOut.set(dflt);
184-
else if(v.every(color => Color.isvalid(color))) propOut.set(v);
184+
else if(v.every(color => Color.isValid(color))) propOut.set(v);
185185
else propOut.set(dflt);
186186
}
187187
},
@@ -450,7 +450,7 @@ exports.coerce = function(containerIn, containerOut, attributes, attribute, dflt
450450
* Variation on coerce
451451
*
452452
* Uses coerce to get attribute value if user input is valid,
453-
* returns attribute default if user input it not valid or
453+
* returns attribute default if user input is not valid or
454454
* returns false if there is no user input.
455455
*/
456456
exports.coerce2 = function(containerIn, containerOut, attributes, attribute, dflt) {

0 commit comments

Comments
 (0)