Fix for jQuery 1.4.x support. fn.closest does not support jQuery object arguments; just selectors.