#770 closed bug (fixed)
.add is broken
Reported by: | Owned by: | JoernZaefferer | |
---|---|---|---|
Priority: | minor | Milestone: | 1.1a |
Component: | core | Version: | 1.1a |
Keywords: | .add | Cc: | |
Blocked by: | Blocking: |
Description
url: http://walkingwoods.com/jquery/
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.
Change History (1)
comment:1 Changed 16 years ago by
Priority: | major → minor |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
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.