Fixed bug in jQuery 1.10