I like the change. even if it breaks some code here and there. The previous behavior was too much "magic" and confusing to any developer that hasn't peered under the covers.
On Dec 13, 8:24 pm, John Resig <jere...@gmail.com> wrote: > The most frequent case I've seen is $().ready() (which still works and > I plan on continuing to make work, at least for the time being). I > haven't really seen other cases being used in the wild - do you have > any examples? > > --John > > > > On Sun, Dec 13, 2009 at 8:06 PM, ajpiano <ajpi...@gmail.com> wrote: > > A recent commit > > -http://github.com/jquery/jquery/commit/04524287d3e0112deae570ff9247c7... > > - changed the behaviour of $() from $(document) to $([]). > > > This is a change that I can truly jibe with, and I think the behaviour > > makes sense. No one likes having to do $([]) to create an empty jQuery > > object. Unfortunately, no change for 1.4 has made me think "will > > break a lot of people's code" like this one. For some inane reason, > > people (and a lot of tutorials) really started using the $() shortcut, > > so the change kind of makes me somewhat uneasy. > > > Would love to hear any other perspectives on this. Should the change > > stay in and be loudly shouted as a potential 1.4 transition issue, or > > rolled back? > > > -- > > > You received this message because you are subscribed to the Google Groups > > "jQuery Development" group. > > To post to this group, send email to jquery-...@googlegroups.com. > > To unsubscribe from this group, send email to > > jquery-dev+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://groups.google.com/group/jquery-dev?hl=en. -- You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to jquery-...@googlegroups.com. To unsubscribe from this group, send email to jquery-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en.