Skip to content

Commit d304864

Browse files
committed
make 'dflt' a required opts for 'subplotid' val types
1 parent 6c1938c commit d304864

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/coerce.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,11 @@ exports.valObjects = {
164164
subplotid: {
165165
description: [
166166
'An id string of a subplot type (given by dflt), optionally',
167-
'followed by an integer >1. e.g. if dflt=\'geo\', we can have',
167+
'followed by an integer >1. e.g. if dflt=\'geo\', we can have',
168168
'\'geo\', \'geo2\', \'geo3\', ...'
169169
].join(' '),
170-
requiredOpts: [],
171-
otherOpts: ['dflt'],
170+
requiredOpts: ['dflt'],
171+
otherOpts: [],
172172
coerceFunction: function(v, propOut, dflt) {
173173
var dlen = dflt.length;
174174
if(typeof v === 'string' && v.substr(0, dlen) === dflt &&

0 commit comments

Comments
 (0)