]> source.dussan.org Git - jquery.git/commit
Offset: simplify jQuery#offsetParent method
authorOleg Gaidarenko <markelog@gmail.com>
Tue, 13 Jan 2015 05:16:32 +0000 (08:16 +0300)
committerOleg Gaidarenko <markelog@gmail.com>
Tue, 13 Jan 2015 05:40:00 +0000 (08:40 +0300)
commit96447575c23f7b313091750ed84cec05db3a25c6
tree1cd98eaa77f9b94bc368e2c3b6a096ece0235ace
parent5d522f5c740f1f919a630a5f6ec3d40fad840ff7
Offset: simplify jQuery#offsetParent method

* It seems, check for html element (and previously for body element)
  was redundant

* Simplify "return" statement

* Add comment about potential errors that didn't find themselves
  in real life app

Ref 74ae5444832b2fb966768a97281d2ad8c088bc58
src/offset.js