offsetParent.getScroll() had thrown an error if !offsetParent. Because there is already an if condition with return, its moved after that condition.
Script error in setOffsetOption() if !offsetParent
offsetParent.getScroll() had thrown an error for !offsetParent. Because there is already an if condition with return, its moved after that condition.
Oh i see its a duplicate of #1122 but it isn't related to IE only. It happens at least when element is "position: fixed".
can we use spaces here for indentation so it lines up with the line above? /nitpick
But otherwise I like the solution.
With tabsize = 4 it looks right, I don't know how to fix this.
Don't use tabs here. Use tabs up to the var indentation and then use spaces from there in. Not a huge deal. If you can't figure it out or don't have time, it's ok.
I just shipped it. 08f564d