Clean version of PR 1272 (#1273)
Able to filter out the properties given to a model instead Of throwing an error
This commit is contained in:
parent
f1ef519a5c
commit
3c7e398f6f
|
@ -249,7 +249,9 @@ ModelBaseClass.prototype._initProperties = function(data, options) {
|
|||
));
|
||||
}
|
||||
} else {
|
||||
this.__unknownProperties.push(p);
|
||||
if (strict !== 'filter') {
|
||||
this.__unknownProperties.push(p);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue