Skip to content

Commit

Permalink
Fix variable scope. This caused a bug when multiple fields were prese…
Browse files Browse the repository at this point in the history
…nt, and the first time the "x" was clicked to remove a tag.
  • Loading branch information
GUI committed Aug 4, 2011
1 parent 47c4a0a commit f816b26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/tag-it.js
Expand Up @@ -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);

Expand Down

0 comments on commit f816b26

Please sign in to comment.