Permalink
Browse files

Fix variable scope. This caused a bug when multiple fields were prese…

…nt, and the first time the "x" was clicked to remove a tag.
  • Loading branch information...
1 parent 47c4a0a commit f816b26e5179a333dbb3ae282c04536a566f55d6 @GUI GUI committed Aug 4, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 js/tag-it.js
View
@@ -293,7 +293,7 @@
},
createTag: function(value, additionalClass) {
- that = this;
+ var that = this;
// Automatically trims the value of leading and trailing whitespace.
value = $.trim(value);

1 comment on commit f816b26

@aehlke
Owner
aehlke commented on f816b26 Nov 23, 2012

Thanks

Please sign in to comment.