Fixes infinite loop bug with jQuery v1.10
Merge pull request #115 from borkweb/infinite-loop-jquery-1.10

Fixes infinite loop bug with jQuery v1.10 & v2.0.2