Opened 11 years ago
Closed 11 years ago
#10704 closed defect (duplicate)
[patch][cla] Make NodeList.at accept negative index
Reported by: | dante | Owned by: | dante |
---|---|---|---|
Priority: | high | Milestone: | 1.5 |
Component: | Core | Version: | 1.4.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Currently, you can only specify a positive index for an at() call. It would be nice if you were able to pass a negative, which looped around backwards from 0 ...
eg:
dojo.query("a").at(0, -1) // first and last elements
requires a one-line addition to NodeList?.js, patch attached.
(apologies if this is a dup, I thought I'd filed this ticket previously but cannot locate it now)
Attachments (1)
Change History (4)
Changed 11 years ago by
Attachment: | NodeList.patch added |
---|
comment:1 Changed 11 years ago by
Summary: | Make NodeList.at accept negative index → [patch][cla] Make NodeList.at accept negative index |
---|
comment:2 Changed 11 years ago by
comment:3 Changed 11 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
this was a duplicate that was fixed with [21802]
Note: See
TracTickets for help on using
tickets.
(In [21681]) refs #10704 - updating unit test to pass at() when firebug present, who is now adding a <div> to <html> for firebugConsole. scope the selection a tad