Commit 5e497300 authored by Jörn Zaefferer's avatar Jörn Zaefferer

Improved a lot of docs, adding description to examples, merging methods with...

Improved a lot of docs, adding description to examples, merging methods with optional arguments; Modified filter(Function) to set correct scope (this == element) instead of passing element as argument
parent d1a4077f
...@@ -22,7 +22,7 @@ New and Noteworthy ...@@ -22,7 +22,7 @@ New and Noteworthy
- Implemented a better error handling for ajax requests. Exceptions caused by dropping connections are now handled, too. - Implemented a better error handling for ajax requests. Exceptions caused by dropping connections are now handled, too.
- Added global settings for AJAX (in addition to timeout), use $.ajaxSetup() to modify them - Added global settings for AJAX (in addition to timeout), use $.ajaxSetup() to modify them
- You can now unbind event handlers from within themselves - You can now unbind event handlers from within themselves
- Documented filter(Function) - Documented filter(Function), a very powerful approach for custom filtering
- Improved docs for FX module, merging method descriptions and marking optional arguments - Improved docs for FX module, merging method descriptions and marking optional arguments
- Improved docs for append, prepend, before and after, merging the three pairs into one - Improved docs for append, prepend, before and after, merging the three pairs into one
......
...@@ -281,7 +281,7 @@ test("clone()", function() { ...@@ -281,7 +281,7 @@ test("clone()", function() {
test("filter()", function() { test("filter()", function() {
isSet( $("input").filter(":checked").get(), q("radio2", "check1"), "filter(String)" ); isSet( $("input").filter(":checked").get(), q("radio2", "check1"), "filter(String)" );
isSet( $("p").filter(["#ap", "#sndp"]).get(), q("ap", "sndp"), "filter(Array<String>)" ); isSet( $("p").filter(["#ap", "#sndp"]).get(), q("ap", "sndp"), "filter(Array<String>)" );
isSet( $("p").filter(function(el) { return !$("a", el).length }).get(), q("sndp", "first"), "filter(Function)" ); isSet( $("p").filter(function() { return !$("a", this).length }).get(), q("sndp", "first"), "filter(Function)" );
}); });
test("not(String)", function() { test("not(String)", function() {
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment