Opened 10 years ago
Closed 10 years ago
#13094 closed bug (fixed)
If to jQuery#before passed function argument it should receive index of the current element in the set
Reported by: | markel | Owned by: | |
---|---|---|---|
Priority: | high | Milestone: | 1.9 |
Component: | manipulation | Version: | git |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
But it does not – http://jsfiddle.net/sHqu9/
From doc –
.before( function ) A function that returns an HTML string, DOM element(s), or jQuery object to insert before each element in the set of matched elements. Receives the index position of the element in the set as an argument. Within the function, this refers to the current element in the set.
Change History (2)
comment:1 Changed 10 years ago by
comment:2 Changed 10 years ago by
Component: | unfiled → manipulation |
---|---|
Milestone: | None → 1.9 |
Priority: | undecided → high |
Resolution: | → fixed |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Pull request – https://github.com/jquery/jquery/pull/1093