for a couple of reasons I had to implement double checks over .index(el)
plus remove mehtod ... I wonder if something like this could be useful:
remove: function( selector ) {
// proposal - start
if(typeof selector == "number" && this[selector])
$(Array.prototype.splice.call(this, selector, 1)).remove();
else
// proposal - end
if ( !selector || jQuery.filter( selector, [ this ] ).length ) {
// Prevent memory leaks
if ( this.nodeType === 1 ) {
cleanData( this.getElementsByTagName("*") );
cleanData( [this] );
}
if (this.parentNode)
this.parentNode.removeChild( this );
}
},
which in my case would have saved some time.
Regards
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---