Open yanniboi opened 5 years ago
By default the MRSS demo fails to deduplicate the categories. There is a line that is supposed to handle this but it fails:
$.unique(cats); // purge duplicates.
It seems that $.unique() only removes duplicates that immediately follow each other in an array.
['foo', 'bar', 'bar', 'baz'] becomes ['foo', 'bar', 'baz']
['foo', 'bar', 'bar', 'baz']
['foo', 'bar', 'baz']
but ['foo', 'bar', 'baz', 'bar'] stays ['foo', 'bar', 'baz', 'bar']
['foo', 'bar', 'baz', 'bar']
After the sort the categories look as follows:
By default the MRSS demo fails to deduplicate the categories. There is a line that is supposed to handle this but it fails:
$.unique(cats); // purge duplicates.
It seems that $.unique() only removes duplicates that immediately follow each other in an array.
['foo', 'bar', 'bar', 'baz']
becomes['foo', 'bar', 'baz']
but
['foo', 'bar', 'baz', 'bar']
stays['foo', 'bar', 'baz', 'bar']