Skip to content

Updating coordinate object in function form of offset causes silent failure #1848

Closed
@pseudonom

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.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions