From jQuery JavaScript Library
Work in progress.
- Map Selector Methods to Selectors
$("div.parents(li)") equiv. to $("div").parents("li")
This would work for plugins as well.
$("div > (h1, h2)")
$("table").delegate("click", "td", function(){
$(this).addClass("active");
});
Probably just a wholesale import of Joern's delegate plugin
- Internal Selector State Tracking
$("div").parents("li").children().gt(1).selector
== "div.parents(li).children().gt(1)"
- All for binding a catch-all event
$("div").bind("*", function(){})
- Make $(Object), $(Array), $(arguments) officially supported
$(someObject).bind("event", ...);
$(someArray).each(...)
$(someArray).grep(...)
$(arguments).each(...)
- Make .show() set .visibility = 'visible' (in addition to toggling display)
- Protect against external Object.prototype/Array.prototype modifications
- LiveQuery - May still be too costly - but should be strongly considered. Also, event delegation may remove the need for much of it.
- .bind("cssready") - Make waiting for all stylesheets to load a separate event (distinct from DOM ready).
- Remove all unnecessary uses of jQuery.browser
- Remove strict warnings [1]