Bug Tracker

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#770 closed bug (fixed)

.add is broken

Reported by: riku@… Owned by: JoernZaefferer
Priority: minor Milestone: 1.1a
Component: core Version: 1.1a
Keywords: .add Cc:
Blocked by: Blocking:


url: http://walkingwoods.com/jquery/

var text_editor = $([]).add('<p>foo</p>').add('<p>bar</p>');

results in:



instead of

[<p>, <p>]

adding addinional dimension to the array, thus disabling most jquery calls to it without tearing it down with .each etc.

Change History (1)

comment:1 Changed 16 years ago by joern

Priority: majorminor
Resolution: fixed
Status: newclosed

The unnecessary array dimension is now fixed.

The other issue here is now also fixed: The add method, as documented, accepted only expressions to search for elements, not to create elements on the fly.

Note: See TracTickets for help on using tickets.