detect `.selector` deprecated in jQuery 1.7