Fix for jQuery 1.10.2 and jQuery migrate 1.2.1