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,10 +249,12 @@ ModelBaseClass.prototype._initProperties = function(data, options) {
|
|||
));
|
||||
}
|
||||
} else {
|
||||
if (strict !== 'filter') {
|
||||
this.__unknownProperties.push(p);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
keys = Object.keys(properties);
|
||||
|
||||
|
|
Loading…
Reference in New Issue