Side navigation
#10424 closed enhancement (plugin)
Opened October 05, 2011 10:17AM UTC
Closed October 05, 2011 01:06PM UTC
Add .toArray() method
Reported by: | wheresrhys | Owned by: | |
---|---|---|---|
Priority: | low | Milestone: | None |
Component: | core | Version: | 1.6.4 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Reading through the documentation today I found an example (
$("div").get(); /// returns array of DOM nodes
Also I notice .makeArray() only works in the following way
$.makeArray($("div"));
And not like so:
$("div").makeArray();
Given that the functionality exists (but just not documented properly), could jQuery include a .toArray/.makeArray method (either adapting the current .makeArray or as an alias for .get()).
Attachments (0)
Change History (1)
Changed October 05, 2011 01:06PM UTC by comment:1
component: | unfiled → core |
---|---|
description: | Reading through the documentation today I found an example (http://api.jquery.com/jQuery.unique/) \ \ $("div").get(); /// returns array of DOM nodes \ \ Also I notice .makeArray() only works in the following way \ \ $.makeArray($("div")); \ \ And not like so: \ \ $("div").makeArray(); \ \ Given that the functionality exists (but just not documented properly), could jQuery include a .toArray/.makeArray method (either adapting the current .makeArray or as an alias for .get()). → Reading through the documentation today I found an example ( \ \ $("div").get(); /// returns array of DOM nodes \ \ Also I notice .makeArray() only works in the following way \ \ $.makeArray($("div")); \ \ And not like so: \ \ $("div").makeArray(); \ \ Given that the functionality exists (but just not documented properly), could jQuery include a .toArray/.makeArray method (either adapting the current .makeArray or as an alias for .get()). |
priority: | undecided → low |
resolution: | → plugin |
status: | new → closed |
there is really no reason to add another array creator method to the core