Browse files

dont keep show duplicate fonts

  • Loading branch information...
1 parent 2bc7ab5 commit e0b629eb34b30e2d414740e24e6d8318b6b388e3 @daleharvey committed Mar 1, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 upmock.node.js
View
4 upmock.node.js
@@ -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) {

0 comments on commit e0b629e

Please sign in to comment.