Plugins

User login
Can't find a Plugin?

Can't find a Plugin you are looking for? Check out the jQuery Wiki page.

Are you a plugin developer? Please move your plugin over to this site.

Website Bug or Feature Request?

Found a bug on the new jQuery Plugin website? Have a feature request?

Submit it to the jQuery Plugin website issue queue to ensure it is noticed!

Selso removes events


Project:SelSo - a Selection Sorter
Component:Code
Category:bug report
Priority:normal
Assigned:alpar
Status:active
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.