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