Skip to content

Commit

Permalink
Merge pull request aehlke#3 from gregarcara/master
Browse files Browse the repository at this point in the history
Fixed bug in _isNew to prevent unneeded iterations after finding match
  • Loading branch information
aehlke committed Jun 23, 2011
2 parents f4db584 + f5fe54e commit 47c4a0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/tag-it.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 47c4a0a

Please sign in to comment.