From 3c7e398f6f0ac7ff41e44a4077e5dc0a2f99dafd Mon Sep 17 00:00:00 2001 From: Sakib Hasan Date: Mon, 20 Mar 2017 18:10:01 -0400 Subject: [PATCH] Clean version of PR 1272 (#1273) Able to filter out the properties given to a model instead Of throwing an error --- lib/model.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/model.js b/lib/model.js index 2650b9db..f1f81bbd 100644 --- a/lib/model.js +++ b/lib/model.js @@ -249,7 +249,9 @@ ModelBaseClass.prototype._initProperties = function(data, options) { )); } } else { - this.__unknownProperties.push(p); + if (strict !== 'filter') { + this.__unknownProperties.push(p); + } } } }