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: | riku@walkingwoods.co | 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
[[<p>],[<p>]]
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 comment:1
priority: | major → minor |
---|---|
resolution: | → fixed |
status: | new → closed |
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.