Permalink
Browse files

Fixed destroy function to correctly remove dropdown

  • Loading branch information...
1 parent 7d3ae6c commit bf929f087702e40332361c672d2c440b3298834f @garrettlancaster committed Jan 28, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/jquery.tokeninput.js
View
@@ -119,9 +119,10 @@ var methods = {
},
destroy: function() {
$(this).removeData('tokenInputObject');
- $(this).siblings('.token-input-list').remove()
- $(this).show()
- $(this.id + '_dropdown').remove()
+ $(this).siblings('.token-input-list').remove();
+ $(this).show();
+ console.log(this[0].id);
+ $('#' + this[0].id + '_dropdown').remove();
return this;
}
}

0 comments on commit bf929f0

Please sign in to comment.