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

Prevent pick-a-color from being initialised more than once #89

Open pkumaschow opened 6 years ago

pkumaschow commented 6 years ago

When adding elements dynamically to a page it is necessary to initialise the newly added element

$(".pick-a-color").pickAColor();

Doing so will also reinitialise the elements already on the page. This PR prevents that.