rgrove / jquery-yui3-rosetta-stone

A guide to idioms in YUI 3 and jQuery.
BSD 3-Clause "New" or "Revised" License
65 stars 20 forks source link

Replaced .position() with .offset() and add .setXY() #12

Closed juandopazo closed 12 years ago

juandopazo commented 13 years ago

In jQuery, the way of obtaining the position of an element relative to the document is using .offset(). Isn't comparing .offset() with .getXY() clearer than with .position()?

rgrove commented 13 years ago

Looks good to me.

rgrove commented 13 years ago

@paulirish Okay to merge?

yuchi commented 13 years ago

Bump.