From f5fe54e4b67979da6a563ed03b9f0caae09b43c0 Mon Sep 17 00:00:00 2001 From: Greg Arcara Date: Mon, 20 Jun 2011 18:43:44 -0700 Subject: [PATCH] Fixed bug in _isNew to prevent unneeded iterations after finding match --- js/tag-it.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/tag-it.js b/js/tag-it.js index 39d5f87d..512534b4 100644 --- a/js/tag-it.js +++ b/js/tag-it.js @@ -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;