Permalink
Browse files

Fixed bug in _isNew to prevent unneeded iterations after finding match

  • Loading branch information...
1 parent f4db584 commit f5fe54e4b67979da6a563ed03b9f0caae09b43c0 @gregarcara gregarcara committed Jun 21, 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 f5fe54e

Please sign in to comment.