lauren / pick-a-color

an easy-to-use jQuery color picker for Twitter Bootstrap
http://lauren.github.com/pick-a-color/
MIT License
269 stars 89 forks source link

Lack of Destroy Method #54

Open bwencke opened 9 years ago

bwencke commented 9 years ago

jQuery plugins should have destroy methods. This is helpful in large applications.

tgolen commented 9 years ago

:+1: I stopped using this because the lack of a destroy method was tearing things apart.

Diegovap commented 9 years ago
                     //to destroy the color picker:
        $( "div.pick-a-color-markup" ).each(function(i){
            $(this).replaceWith($(this).find("input"));
        });

if you want to destroy listeners use .off() jquery function.

its a dirty solution but works.

darylldawn commented 7 years ago

Can this still be implemented?