Fix for jQuery 1.10.2 and jQuery migrate 1.2.1

HI,

I have come across a bug when using jQuery 1.10.2 and jQuery migrate 1.2.1. I've included the fix which seems to solve the problem.