As part of #1415788: Javascript winter clean-up we're doing a jQuery-cleanup. All usages of .prev() and .next() have to be checked. If there is any filtering happening after these calls, they should be refactored to filter them within these calls.
Comments
Comment #1
jelle_sAlso, although I'm not sure if this is in the scope of the issue and/or if it's considered best practice, but there are a lot of .prev('selector').eq(0) and .next('selector').eq(0). Should they be refactored to .prev('selector:first') and .next('selector:first')? Or is this something for #1649780: Remove first/last/odd/even classes in favor of CSS3 pseudo selectors ?
Comment #2
jelle_sAdding tags
Comment #3
nod_I don't want sizzle-specific selectors, but this one can work. Make sure you don't add any
:lastselector, that's all. update the summary in the clean-up meta as well :)Comment #4
nod_Filtering part of this is ok already. The selector would help, we got specific issues for each files, that should be taken there.