There is as fix in:aa73cd3#diff-5533b3a46c8d44c5a0d1f3198ee1cd9a
But I don't think this fix works.
if(!this.getCurrentRange) is always false. Its never true. Cause "this" in this context refers to $ ( window ) and as such there will never be a method this.getCurrentRange.
I don't see quite what the code is supposed to achieve afterwards ? Even without invoking the method I don't see any change in bahviour.