Closed johngeorgewright closed 9 years ago
Hey there,
I've written a possible solution to task #95.
Now attributes can be ignored when they are undefined in 3 ways.
By setting the ignoreEmpty option to true:
ignoreEmpty
true
Plates.Map({ create: true, ignoreEmpty: true });
By specifying a particular attribute:
Plates.Map({ create: true, ignoreEmpty: 'id' });
By selecting a few attributes with an array:
Plates.Map({ create: true, ignoreEmpty: ['id', 'data-toggle'] });
Nearly 2 years old. Closing.
Hey there,
I've written a possible solution to task #95.
Now attributes can be ignored when they are undefined in 3 ways.
By setting the
ignoreEmpty
option totrue
:By specifying a particular attribute:
By selecting a few attributes with an array: