Ticket #2811 (closed bug: fixed)
2 bugs on jQuery.fn.add
|Reported by:||flesler||Owned by:||flesler|
|Keywords:||add duplicated unique window form||Cc:|
Description (last modified by flesler) (diff)
As mentioned here, $.fn.add is not calling $.unique, thus elements can get duplicated.
Also, the array-like detection is very naive, and will fail when receiving
a form, or the window if iframes are included.
That's why I change it so that it uses makeArray, which does smarter sniffing on array-like.
This also makes the code shorter.