From 88fff724c275f4e4d52b45d0ad2a3d0f192cf282 Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Tue, 13 Aug 2013 13:44:24 -0400 Subject: [PATCH] Embarrassing syntax error --- marketplace.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/marketplace.js b/marketplace.js index a465e01..cfe45c6 100644 --- a/marketplace.js +++ b/marketplace.js @@ -30,8 +30,8 @@ function unify1(a, b) { require any field mentioned by either side to be present in both. Does that make sense? */ var result = ({}); - for (i in a) { if a.hasOwnProperty(i) result[i] = true; } - for (i in b) { if b.hasOwnProperty(i) result[i] = true; } + for (i in a) { if (a.hasOwnProperty(i)) result[i] = true; } + for (i in b) { if (b.hasOwnProperty(i)) result[i] = true; } for (i in result) { if (result.hasOwnProperty(i)) { result[i] = unify1(a[i], b[i]);