Skip to content

Commit

Permalink
Fixed bug in _isNew to prevent unneeded iterations after finding match
Browse files Browse the repository at this point in the history
  • Loading branch information
gregarcara committed Jun 21, 2011
1 parent f4db584 commit f5fe54e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/tag-it.js
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 f5fe54e

Please sign in to comment.