From 1eec2e84a12bc7cf746c8e6099031629ca7d3783 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jordan=20Aug=C3=A9?= Date: Fri, 25 Jul 2014 01:10:43 +0200 Subject: [PATCH] fixed _record_equals when presented with keys as string --- manifoldapi/static/js/manifold.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/manifoldapi/static/js/manifold.js b/manifoldapi/static/js/manifold.js index e0454a51..00e5562c 100644 --- a/manifoldapi/static/js/manifold.js +++ b/manifoldapi/static/js/manifold.js @@ -757,6 +757,9 @@ var manifold = { _record_equals: function(self, other, key_fields) { + if ((typeof self === "string") && (typeof other === "string")) { + return self == other; + } for (var i=0; i < key_fields.length; i++) { var this_value = self[key_fields[i]]; var other_value = other[key_fields[i]]; -- 2.43.0