Bug Tracker

Modify

Ticket #10424 (closed enhancement: plugin)

Opened 21 months ago

Last modified 21 months ago

Add .toArray() method

Reported by: wheresrhys Owned by:
Priority: low Milestone: None
Component: core Version: 1.6.4
Keywords: Cc:
Blocking: Blocked by:

Description (last modified by rwaldron) (diff)

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()).

Change History

comment:1 Changed 21 months ago by rwaldron

  • Priority changed from undecided to low
  • Resolution set to plugin
  • Status changed from new to closed
  • Component changed from unfiled to core
  • Description modified (diff)

there is really no reason to add another array creator method to the core

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.