From 738a2a94a4418d452bef23b320d04f18d5aa5ac9 Mon Sep 17 00:00:00 2001 From: Aurelio De Rosa Date: Mon, 7 Jul 2014 00:55:00 +0100 Subject: [PATCH 1/2] Update wrapAll.xml Added missing documentation of the possibility to pass a function (added since jQuery 1.4) --- entries/wrapAll.xml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/entries/wrapAll.xml b/entries/wrapAll.xml index c4c7c49a..867599eb 100644 --- a/entries/wrapAll.xml +++ b/entries/wrapAll.xml @@ -11,6 +11,14 @@ A selector, element, HTML string, or jQuery object specifying the structure to wrap around the matched elements. + + 1.4 + + A callback function which generates a structure to wrap around the 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. + + + + Wrap an HTML structure around all elements in the set of matched elements.

The .wrapAll() function can take any string or object that could be passed to the $() function to specify a DOM structure. This structure may be nested several levels deep, but should contain only one inmost element. The structure will be wrapped around all of the elements in the set of matched elements, as a single group.

From b9303663d4f5a74ed64ef9b079615fc5311018b9 Mon Sep 17 00:00:00 2001 From: Aurelio De Rosa Date: Mon, 7 Jul 2014 12:17:51 +0100 Subject: [PATCH 2/2] Update wrapAll.xml --- entries/wrapAll.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entries/wrapAll.xml b/entries/wrapAll.xml index 867599eb..80112ca0 100644 --- a/entries/wrapAll.xml +++ b/entries/wrapAll.xml @@ -14,7 +14,7 @@ 1.4 - A callback function which generates a structure to wrap around the 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. + A function that returns a structure to wrap around the 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.