Skip to content

Commit

Permalink
comment cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
aehlke committed Nov 23, 2012
1 parent 988e490 commit 6f93d79
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/tag-it.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@

// Comma/Space/Enter are all valid delimiters for new tags,
// except when there is an open quote or if setting allowSpaces = true.
// Tab will also create a tag, unless the tag input is empty, in which case it isn't caught.
// Tab will also create a tag, unless the tag input is empty,
// in which case it isn't caught.
if (
event.which == $.ui.keyCode.COMMA ||
event.which == $.ui.keyCode.ENTER ||
Expand Down Expand Up @@ -307,7 +308,7 @@

createTag: function(value, additionalClass) {
var that = this;
// Automatically trims the value of leading and trailing whitespace.

value = $.trim(value);

if (!this._isNew(value) || value === '') {
Expand Down

0 comments on commit 6f93d79

Please sign in to comment.