Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

Destroy colorpicker #15

Open
peterpham opened this issue Jan 15, 2013 · 3 comments
Open

Destroy colorpicker #15

peterpham opened this issue Jan 15, 2013 · 3 comments

Comments

@peterpham
Copy link

How to properly destroy a color picker instance?

@redon
Copy link

redon commented Feb 18, 2013

need that too

@georgecoltart
Copy link

+1

@andrewboudreau
Copy link

as a simple work around, i added this to the create method

element.data("colorPickerDelete", function () {
                element.unbind();
                newPalette.remove();
                newHexLabel.remove();
                newHexField.remove();
                newControl.remove();
            });

and then executed as needed with

 $(element).data("colorPickerDelete")();

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants