From a283922c28ae1ce237dca887261c30b48b0a0a8e Mon Sep 17 00:00:00 2001 From: Clark Wang Date: Mon, 1 Jun 2015 11:28:58 +0800 Subject: [PATCH] fix typo Signed-off-by: Clark Wang --- lib/model.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/model.js b/lib/model.js index d595988d..4fa08eda 100644 --- a/lib/model.js +++ b/lib/model.js @@ -198,7 +198,7 @@ ModelBaseClass.prototype._initProperties = function (data, options) { if (ctor.relations[p].options.embedsProperties) { var fields = fieldsToArray(ctor.relations[p].properties, - modelTo.definition.properties, modelTo.setting.strict); + modelTo.definition.properties, modelTo.settings.strict); if (!~fields.indexOf(ctor.relations[p].keyTo)) { fields.push(ctor.relations[p].keyTo); }