JQuery 1.7 Released
blog.jquery.com
JQuery 1.7 Released
1–10 of 47 posts
Re: JQuery 1.7 Released
#2Re: JQuery 1.7 Released
#3I'm being picky I know, but wouldn't it just be easier to use something like:
$("#div").on("click", {
selector: "span",
data: "blahblah",
handler: function()
});
Perhaps it's far too verbose, now that I've typed it out. But it just seems like it would do a good job of removing ambiguities like this.Re: JQuery 1.7 Released
#4They've also improved event delegation performance by a factor of 2.
Re: JQuery 1.7 Released
#5This new release fixes the issue and I can confirm the fix works like a charm.
Re: JQuery 1.7 Released
#6Re: JQuery 1.7 Released
#7There is one ambiguous case: If the data argument is a string, you must provide either a selector string or null so that the data isn’t mistaken as a selector. Pass an object for data and you’ll never have to worry about special cases. I'm being picky I know, but wouldn't it just be easier to use something like: $("#div").on("click", { selector: "span", data: "blahblah", handler: function() }); Perhaps it's far too v…
Re: JQuery 1.7 Released
#8Re: JQuery 1.7 Released
#9Re: JQuery 1.7 Released
#10Is there a good set of jQuery tutorials that uses 1.7 (so you don't learn non-best practices)? I know it was just released, but these things are often built along with the development.