Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use correct method name
  • Loading branch information
camdecoster committed Aug 22, 2025
commit 17fe004f3cf3235fec9cc4909457859e841c4563
4 changes: 2 additions & 2 deletions src/lib/coerce.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ exports.valObjectMeta = {
otherOpts: ['dflt'],
coerceFunction: function(v, propOut, dflt) {
if(!Array.isArray(v) || !v.length) propOut.set(dflt);
else if(v.every(color => Color.isvalid(color))) propOut.set(v);
else if(v.every(color => Color.isValid(color))) propOut.set(v);
else propOut.set(dflt);
}
},
Expand Down Expand Up @@ -450,7 +450,7 @@ exports.coerce = function(containerIn, containerOut, attributes, attribute, dflt
* Variation on coerce
*
* Uses coerce to get attribute value if user input is valid,
* returns attribute default if user input it not valid or
* returns attribute default if user input is not valid or
* returns false if there is no user input.
*/
exports.coerce2 = function(containerIn, containerOut, attributes, attribute, dflt) {
Expand Down