From: Jordan Augé Date: Thu, 24 Jul 2014 23:10:43 +0000 (+0200) Subject: fixed _record_equals when presented with keys as string X-Git-Tag: myslice-1.0~45^2^2~1 X-Git-Url: http://git.onelab.eu/?p=unfold.git;a=commitdiff_plain;h=1eec2e84a12bc7cf746c8e6099031629ca7d3783 fixed _record_equals when presented with keys as string --- 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]];