In jQuery, is it recommended to check if a class is already assigned to an element before adding that class? Will it even have any effect at all?
For example:
$("label") .not(".foo") .addClass("foo");