Skip to content

Commit

Permalink
Revert
Browse files Browse the repository at this point in the history
  • Loading branch information
felixclack committed Sep 28, 2009
1 parent 56b10b8 commit f1bd39d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/jquery.tokeninput.js
Expand Up @@ -212,7 +212,7 @@ $.TokenList = function (input, settings) {

// The list to store the token items in
var token_list = $("<ul />")
.css('width', hidden_input.width())
.css('width', hidden_input.width())
.addClass(settings.classes.tokenList)
.insertAfter(hidden_input)
.click(function (event) {
Expand Down Expand Up @@ -291,7 +291,7 @@ $.TokenList = function (input, settings) {
function init_list () {
if(settings.prePopulate) {
$.each(settings.prePopulate, function(i, item) {
create_token(item);
insert_token(item.id, item.name);
});
}
}
Expand Down Expand Up @@ -363,7 +363,7 @@ $.TokenList = function (input, settings) {
// Save this token id
var id_string = id + ","
hidden_input.val(hidden_input.val() + id_string);

token_count++;

if(settings.tokenLimit != null && settings.tokenLimit >= token_count) {
Expand Down

0 comments on commit f1bd39d

Please sign in to comment.