Support jQuery < 1.6 by not using $.fn.is().