On Sep 17, 1:06 pm, Stephan Beal <[EMAIL PROTECTED]> wrote:
> i think the main reason lt/gt were removed was "because you can do the
> same thing with slice()". John Resig said in a post a week or so ago
> that they were also removed because "they did only one thing, and
> didn't do it terribly well" (or something to that effect). Fair
> enough, but then i would prefer that x.lt(n) be kept and implemented
> in terms of $( ":lt(n)",x), or vice versa.
>
> :)

I think it would be better if it worked a bit like how the format
plugin does it (http://bassistance.de/jquery-plugins/jquery-plugin-
format/) or even better, the .NET way:

var x = 2;
var y = "span";
$(":filter({1}):gt({0})", x, y); // filter(span):gt(2)

Reply via email to