Skip to main content

Bug Tracker

Side navigation

#770 closed bug (fixed)

Opened January 10, 2007 08:39AM UTC

Closed January 10, 2007 09:54AM UTC

Last modified June 20, 2007 06:41AM UTC

.add is broken

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


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

results in:

>>> text_editor


instead of

[<p>, <p>]

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

Attachments (0)
Change History (1)

Changed January 10, 2007 09:54AM UTC by joern comment:1

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.