Selso removes events
March 21, 2008 - 11:01pm — alpar
| Project: | SelSo - a Selection Sorter |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | alpar |
| Status: | active |
Jump to:
Description
I have discovered that selso removes events, after it sorts the list elements. I didn't spend much time to see that this has some advantage or it was just overlooked, but it was unacceptable for me. I found a quick fix.
prependToParent : function(){
144 return this.each(function(){
145 $(this).parent().prepend($(this).remove());
146 });
147 },should be
prependToParent : function(){
return this.each(function(){
$(this).parent().prepend($(this).clone(true));
$(this).remove();
});
},
Comments
#1
Thanks alpar.
At the time I first wrote this plugin, I think it was always the case that a remove would suppress the events, and a fix in 1.2 changed that.
So thanks a lot for noticing, I am just including the fix in a new file.