Further optimizations
commit460fe0d3a4d921c30f296461e0c8e11f37fa5d59
authorMax Goldstein <maxgoldstein1@gmail.com>
dateThu 19 Dec 2013, 21:47 (13 years ago)
parentc6fbc8d
libraries/Native/Utils.js+1−1
@@ -25,7 +25,7 @@ Elm.Native.Utils.make = function(elm) {
2525 function compare(x,y) { return { ctor: ord[cmp(x,y)+1] } }
2626 function cmp(x,y) {
2727 var ord;
28− if (!(x instanceof Object) || x instanceof String){
28+ if (typeof x !== 'object' || x instanceof String){
2929 return x === y ? EQ : x < y ? LT : GT;
3030 }
3131