From 9192c274098eba758e2d768d84926a46e6c255b9 Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Fri, 14 Feb 2014 11:21:30 -0800 Subject: [PATCH] Leave the item type introspection for List --- lib/dao.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dao.js b/lib/dao.js index 3314790f..f5edfe13 100644 --- a/lib/dao.js +++ b/lib/dao.js @@ -563,7 +563,7 @@ DataAccessObject.find = function find(params, cb) { // Promote the included model as a direct property var data = obj.__cachedRelations[inc]; if(Array.isArray(data)) { - data = new List(data, data[0] && [data[0].constructor], obj); + data = new List(data, null, obj); } obj.__data[inc] = data; });