kennethcachia / background-check

Automatically switch to a darker or a lighter version of an element depending on the brightness of images behind it.
http://kennethcachia.com/background-check/
MIT License
3.27k stars 282 forks source link

It doesn't work when init again after destroy #93

Open ferdydurque opened 7 years ago

ferdydurque commented 7 years ago

I'm using in an Ajax application and I use it only in some pages. Every Ajax call I call the destroy method and then init again, depending on the page. When re-init it doesn't work.

jakedowns commented 7 years ago

same issue here with v1.2.2. will try to put together a minimal example

Update: added a PR to fix