From dcc33019ec03a109a7e2bf6b97f6565e32b095fb Mon Sep 17 00:00:00 2001 From: Ben Brown Date: Tue, 15 Nov 2011 09:45:28 -0800 Subject: [PATCH] Fix problem in importTags where tag elements were not properly removed due to missing definition of id variable --- jquery.tagsinput.js | 1 + 1 file changed, 1 insertion(+) diff --git a/jquery.tagsinput.js b/jquery.tagsinput.js index ecd7ed3..070b38c 100644 --- a/jquery.tagsinput.js +++ b/jquery.tagsinput.js @@ -113,6 +113,7 @@ // clear all existing tags and import new ones from a string $.fn.importTags = function(str) { + id = $(this).attr('id'); $('#'+id+'_tagsinput .tag').remove(); $.fn.tagsInput.importTags(this,str); }