Fix bug in tagExist

This commit is contained in:
Ben Brown
2012-04-11 15:22:57 -05:00
parent 0cdef424cf
commit 6d8d9d9a4f
+4 -1
View File
@@ -186,7 +186,10 @@
};
$.fn.tagExist = function(val) {
return (jQuery.inArray(val, $(this)) >= 0); //true when tag exists, false when not
var settings = $(this).data('settings');
var tagslist = $(this).val().split(settings.delimiter);
return (jQuery.inArray(val, tagslist) >= 0); //true when tag exists, false when not
};
// clear all existing tags and import new ones from a string