Permalink
Browse files

Merge pull request #3 from gregarcara/master

Fixed bug in _isNew to prevent unneeded iterations after finding match
  • Loading branch information...
2 parents f4db584 + f5fe54e commit 47c4a0ae4d6aec82fff69ee064a163b7c8b03a1e @aehlke aehlke committed Jun 23, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/tag-it.js
View
@@ -279,7 +279,7 @@
this.tagList.children('.tagit-choice').each(function(i) {
if (that._formatStr(value) == that._formatStr(that.tagLabel(this))) {
isNew = false;
- return;
+ return false;
}
});
return isNew;

0 comments on commit 47c4a0a

Please sign in to comment.