Bug Tracker

Ticket #3241 (closed enhancement: fixed)

Opened 6 years ago

Last modified 6 years ago

Why setting the length to 0 on jQuery's prototype ?

Reported by: flesler Owned by: flesler
Priority: major Milestone: 1.3
Component: core Version: 1.2.6
Keywords: Cc:
Blocking: Blocked by:

Description

I think this is rather useless: Line 93 & 94.

// The number of elements contained in the matched element set
  length: 0,

I recall this causing me problems when iterating the prototype. Can't reproduce that though. Still, seems like useless code. All the tests pass without that.

Attachments

length[5819].diff Download (419 bytes) - added by flesler 6 years ago.

Change History

Changed 6 years ago by flesler

comment:1 Changed 6 years ago by flesler

  • need changed from Patch to Commit
  • Status changed from new to assigned

comment:2 Changed 6 years ago by flesler

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

Applied at [5820].

Note: See TracTickets for help on using tickets.