Skip to content
This repository
Browse code

Merge pull request #3 from gregarcara/master

Fixed bug in _isNew to prevent unneeded iterations after finding match
  • Loading branch information...
commit 47c4a0ae4d6aec82fff69ee064a163b7c8b03a1e 2 parents f4db584 + f5fe54e
Alex Ehlke authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  js/tag-it.js
2  js/tag-it.js
@@ -279,7 +279,7 @@
279 279 this.tagList.children('.tagit-choice').each(function(i) {
280 280 if (that._formatStr(value) == that._formatStr(that.tagLabel(this))) {
281 281 isNew = false;
282   - return;
  282 + return false;
283 283 }
284 284 });
285 285 return isNew;

0 comments on commit 47c4a0a

Please sign in to comment.
Something went wrong with that request. Please try again.