Opened 14 years ago
Closed 12 years ago
#2815 closed bug (fixed)
remove element from XML doc broken & a solution
Reported by: | xyplex64 | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.2.4 |
Component: | event | Version: | 1.2.3 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
When trying to call remove on an element in an XML doc, IE 6 fails with "Object doesn't support this property or method". The reason it is failing is because of the "Prevent memory leaks" section. This part only applies to HTML DOM documents so I wrapped it in a conditional.
remove: function( selector ) {
jQuery.filter( selector, [ this ] ).r.length ) { |
if (this.documentElement == document)
Prevent memory leaks jQuery( "*", this ).add(this).each(function(){ jQuery.event.remove(this); jQuery.removeData(this);
}); if (this.parentNode)
this.parentNode.removeChild( this );
} },
Change History (2)
comment:1 Changed 12 years ago by
Component: | core → event |
---|
comment:2 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
The event rewrite in 1.4 should have fixed this.