Skip to main content

Bug Tracker

Side navigation

#3995 closed enhancement (fixed)

Opened January 26, 2009 03:31PM UTC

Closed February 14, 2009 09:16PM UTC

Last modified February 14, 2009 10:10PM UTC

jQuery(array) and get()

Reported by: rkatic Owned by:
Priority: minor Milestone: 1.3.2
Component: core Version: 1.3.1
Keywords: optimization, array Cc:
Blocked by: Blocking:

On every jQuery(array) call, the array is unnecessary cloned before the setArray call.

This can be easily avoided adding this code at line 72:

// HANDLE: $(array)
} else if ( jQuery.isArray( selector ) )
	return this.setArray( selector )

The get() call can be optimized by replacing the line 98 with: this ) :
Attachments (0)
Change History (2)

Changed February 14, 2009 09:16PM UTC by john comment:1

resolution: → fixed
status: newclosed

Fixed in SVN rev [6199].

Changed February 14, 2009 10:10PM UTC by john comment:2

Oops, meant [6200]. Accidentally committed it as part of something else... oops :-/