Bug Tracker

Changes between Version 1 and Version 2 of Ticket #7894, comment 1


Ignore:
Timestamp:
Jan 4, 2011, 10:51:27 AM (10 years ago)
Author:
danheberden
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7894, comment 1

    v1 v2  
    11Better yet, you could get rid of the custom selectors completely. http://jsfiddle.net/danheberden/yxQgd/
    22
    3 Thanks for taking the time to write out a bug report / feature request. In the case of :gt, gt(-1) seems odd to me. gt(-1) is simply less than something else. That is, :gt(-1):lt(5) is simply lt(5). Plus, there is no -1 index to be greater than. I know if makes sense that index 0 is greater than anything, but -1 doesn't exist.
     3Thanks for taking the time to write out a bug report / feature request. In the case of :gt, gt(-1) seems odd to me. gt(-1) is simply less than something else. That is, :gt(-1):lt(5) is simply lt(5). Plus, there is no -1 index to be greater than. I know if makes sense that index 0 is greater than any negative number, but -1 doesn't exist.
    44
    55Custom selectors aren't great in any respect, as the above example I pasted doesn't even have to use sizzle. Faster and cleaner; the gains are two fold.