Skip to main content

Bug Tracker

Side navigation

#3999 closed enhancement (fixed)

Opened January 26, 2009 10:33PM UTC

Closed July 16, 2009 08:32AM UTC

Last modified March 15, 2012 03:22PM UTC

toArray()

Reported by: rkatic Owned by:
Priority: major Milestone: 1.4
Component: unfiled Version: 1.3.1
Keywords: Cc:
Blocked by: Blocking:
Description

An more explicit way to get an array from a jQuery object.

toArray( [start [,end]] )

jQuery.fn.toArray = Array.prototype.slice;

Also consider to make .get() deprecated in favor of .toArray() and .get(index) deprecated in favor of [index].

Discussion about this ticket

Attachments (0)
Change History (3)

Changed February 11, 2009 09:55PM UTC by rkatic comment:1

Despite the above implementation gives the ability to use toArray like an slice it is not recommended to expose this like an feature.

Documenting it with "toArray()" insted of "toArray( [start [,end]] )" would be enough.

According on the discussion, .get(n) would not be deprecated.

Changed July 15, 2009 08:32AM UTC by yehuda comment:2

milestone: 1.3.21.3.3

Changed July 16, 2009 08:32AM UTC by yehuda comment:3

resolution: → fixed
status: newclosed

Resolved by #6438