Fix for ng-dupes

This commit is contained in:
brantje 2016-10-08 15:56:27 +02:00
parent ded7aa2aed
commit b195831482
No known key found for this signature in database
GPG key ID: 5FF1D117F918687F

View file

@ -19,10 +19,12 @@
},
addTags: function (tags) {
for (var i = 0; i < tags.length; i++) {
if (tags[i].text) {
if ($filter('filter')(_tags, {text: tags[i].text}).length === 0) {
_tags.push(tags[i]);
}
}
}
},
removeTag: function (tag) {