From 4fe408d9d3d478a87cdc61440aa655e958856f1e Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Thu, 4 Jul 2013 16:55:47 +0100 Subject: [PATCH] Fixed problem with tags that appear more than once in the tag string --- boot/boot.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/boot/boot.js b/boot/boot.js index c2f329141..dd9fa8413 100644 --- a/boot/boot.js +++ b/boot/boot.js @@ -256,7 +256,10 @@ $tw.utils.parseStringArray = function(value) { do { match = memberRegExp.exec(value); if(match) { - results.push(match[1] || match[2]); + var item = match[1] || match[2]; + if(results.indexOf(item) === -1) { + results.push(item); + } } } while(match); return results;