jQuery: The Write Less, Do More JavaScript Library

Ticket #1427 (closed bug: fixed)

Opened 1 year ago

Last modified 1 year ago

Memory and performance leak

Reported by: nyteschayde Assigned to: john
Type: bug Priority: major
Milestone: 1.1.4 Component: core
Version: 1.1.3 Keywords:
Cc: Needs: Review

Description

On line 88 and 1383 of jQuery 1.1.3.1 there is a wasted Array object creation that doesn't need to happen. At least the code on line 88 happens on every call to jQuery and as such can lead to major performance issues in slower browsers like IE.

Fix:
Replace
[].<Array Function>.(call|apply)(....);
with
Array.prototype.<Array Function>.(call|apply)(....);

Attachments

Change History

Changed 1 year ago by john

  • owner set to john

Changed 1 year ago by john

  • status changed from new to closed
  • resolution set to fixed

Fixed in SVN rev [2791].

Note: See TracTickets for help on using tickets.