From 76e8402ddbec91affdfabb2f88338b914fd34f41 Mon Sep 17 00:00:00 2001 From: Mike Pennisi Date: Mon, 27 Oct 2014 15:56:54 -0400 Subject: [PATCH 1/2] after(): Document new callback signature Since jQuery version 1.10, `$.fn.after` invokes the supplied function with two arguments: the numeric index of each element in the set and the string markup describing each element's contents. Remove the second argument from the documentation of the pre-1.10 signature and add a new entry to thoroughly document the post-1.10 signature. --- entries/after.xml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/entries/after.xml b/entries/after.xml index 8e57cdac..f6c52bf4 100644 --- a/entries/after.xml +++ b/entries/after.xml @@ -23,13 +23,25 @@ A function that returns an HTML string, DOM element(s), or jQuery object to insert after each element in the set of matched elements. Receives the index position of the element in the set as an argument. Within the function, this refers to the current element in the set. - + + + 1.10 + + A function that returns an HTML string, DOM element(s), or jQuery object to insert after each element in the set of matched elements. Receives the index position of the element in the set and the old HTML value of the element as arguments. Within the function, this refers to the current element in the set. + + + + + + + + Insert content, specified by the parameter, after each element in the set of matched elements. From 82ebb27dde912f1b8f1d27796b46b0a2daca34f1 Mon Sep 17 00:00:00 2001 From: Mike Pennisi Date: Mon, 27 Oct 2014 15:59:01 -0400 Subject: [PATCH 2/2] before(): Document new callback signature Since jQuery version 1.10, `$.fn.before` invokes the supplied function with two arguments: the numeric index of each element in the set and the string markup describing each element's contents. Remove the second argument from the documentation of the pre-1.10 signature and add a new entry to thoroughly document the post-1.10 signature. --- entries/before.xml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/entries/before.xml b/entries/before.xml index 7c2ebb7b..5d1bc1aa 100644 --- a/entries/before.xml +++ b/entries/before.xml @@ -22,7 +22,6 @@ 1.4 - @@ -31,6 +30,20 @@ A function that returns an HTML string, DOM element(s), or jQuery object to insert before each element in the set of matched elements. Receives the index position of the element in the set as an argument. Within the function, this refers to the current element in the set. + + + 1.10 + + + + + + + + + A function that returns an HTML string, DOM element(s), or jQuery object to insert before each element in the set of matched elements. Receives the index position of the element in the set and the old HTML value of the element as arguments. Within the function, this refers to the current element in the set. + + Insert content, specified by the parameter, before each element in the set of matched elements.