jQuery: The Write Less, Do More JavaScript Library

 « Return to Thread: $(0) inconsistent with $(1), $(2)

Re: Re: $(0) inconsistent with $(1), $(2)

by Erik Beeson :: Rate this Message:

Reply to Author | View in Thread

Depends on what surprising you I guess. Truthy and falsy values returning different things might not be particularly surprising...

--Erik


On Mon, Nov 2, 2009 at 2:03 PM, Xavier Shay <xavier.shay@...> wrote:
Principle of least surprise says that $(1) and $(0) should be
consistent. To match the nightlies, perhaps $(1) should be an empty
jQuery object?

--

You received this message because you are subscribed to the Google Groups "jQuery Development" group.
To post to this group, send email to jquery-dev@....
To unsubscribe from this group, send email to jquery-dev+unsubscribe@....
For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en.

 « Return to Thread: $(0) inconsistent with $(1), $(2)