Skip to content

Commit

Permalink
dont keep show duplicate fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
daleharvey committed Mar 1, 2012
1 parent 2bc7ab5 commit e0b629e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion upmock.node.js
Expand Up @@ -83,7 +83,9 @@ app.get('/fonts/', function(_err, res) {
return {'id': x.family, 'family':x.family, 'source':'google'};
});

var result = t1.concat(t2).sort(function(a, b) {
var result = _.uniq(t1.concat(t2), false, function(x) {
return x.family;
}).sort(function(a, b) {
var nameA = a.family.toLowerCase();
var nameB = b.family.toLowerCase();
if (nameA < nameB) {
Expand Down

0 comments on commit e0b629e

Please sign in to comment.