From e7520bab888fbd6802f3763a104659f9ab75836c Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 5 Apr 2018 02:34:32 +0300 Subject: [PATCH] bugfix... Signed-off-by: Alex A. Naanou --- ui (gen4)/lib/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui (gen4)/lib/util.js b/ui (gen4)/lib/util.js index d3732a98..a91e1006 100755 --- a/ui (gen4)/lib/util.js +++ b/ui (gen4)/lib/util.js @@ -97,7 +97,7 @@ Array.prototype.toMap = function(normalize){ // NOTE: for an array containing only strings use a much faster .uniqueStrings(..) // NOTE: this may not work on IE... Array.prototype.unique = function(normalize){ - return new Array(...(new Set(normalize ? normalize(this) : this))) } + return new Array(...(new Set(normalize ? this.map(normalize) : this))) } // Compare two arrays...