From d768da2ff959a220d86c8331df809440e4066a35 Mon Sep 17 00:00:00 2001 From: Louis Chatriot Date: Fri, 21 Jun 2013 09:45:14 +0200 Subject: [PATCH] Fix strange array bug in node webkit --- lib/model.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/model.js b/lib/model.js index 3a1ccef..cca7af7 100644 --- a/lib/model.js +++ b/lib/model.js @@ -113,7 +113,7 @@ function deepCopy (obj) { return obj; } - if (obj instanceof Array) { + if (util.isArray(obj)) { res = []; obj.forEach(function (o) { res.push(o); }); return res; diff --git a/package.json b/package.json index 4d92d6d..80a3d4a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nedb", - "version": "0.7.8", + "version": "0.7.9", "author": { "name": "tldr.io", "email": "hello@tldr.io"