Bug Tracker

Modify

Ticket #3995 (closed enhancement: fixed)

Opened 4 years ago

Last modified 4 years ago

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:
Blocking: Blocked by:

Description

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:

			Array.prototype.slice.call( this ) :

Change History

comment:1 Changed 4 years ago by john

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in SVN rev [6199].

comment:2 Changed 4 years ago by john

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

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.