#837 closed bug (fixed)
DOM inconsistency in add(),maybe more places
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | major | Milestone: | 1.1 |
Component: | core | Version: | 1.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
1.0.4 version has support for direct manipulation on DOM elements,something like:
$("li.hl",p).add(el).each()
where "el" is simply DOM element,now in 1.1 I need to wrap it to $(),as:
$("li.hl",p).add( $(el) ).each()
otherwise construction dosen't work at all.
Note: See
TracTickets for help on using
tickets.
OK,I found bug,1.04: add: function(t) {
}; in 1.1 reduced to: add: ... typeof t == "string" ? jQuery(t).get() : t ...
so,it always assume "t" is "Array",that contradictonary to docs,which promote array/element/sequence(of elements) interchangeability. IMHO,it must exists generic conversion "toArray" method,used across framework everywhere,if you will,but it seems every method has it's own parameter parsing logic.