Updating coordinate object in function form of offset
causes silent failure #1848
Closed
Description
- jQuery version: Through 2.1.1
- Browser: Chromium 38.0.2125.101 and Firefox 33.0
- OS: Debian Sid
- Expected behavior:
$(el).offset(function(_, ofs){
ofs.top += 10;
return ofs;
});
Should move el
down by 10 pixels. If that's somehow impossible, jQuery should at least raise an error.
- Actual behavior: jQuery silently fails to do anything.
- Example: http://jsfiddle.net/no6tyzhz/