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:
Sakib Hasan 2017-03-20 18:10:01 -04:00 committed by GitHub
parent f1ef519a5c
commit 3c7e398f6f
1 changed files with 3 additions and 1 deletions

View File

@ -249,7 +249,9 @@ ModelBaseClass.prototype._initProperties = function(data, options) {
));
}
} else {
this.__unknownProperties.push(p);
if (strict !== 'filter') {
this.__unknownProperties.push(p);
}
}
}
}