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

Can't get it to work with IE9 #11

Closed jessekahner closed 10 years ago

jessekahner commented 10 years ago

For the life of me, I can't get it to work with Internet Explorer 9.

I get this message:

SCRIPT5007: Unable to get property 'remove' of undefined or null reference 
background-check.min.js, line 5 character 4834

Am I doing it wrong?

The code I use looks something like this:

BackgroundCheck.init({
      targets: ".bg-check-target",
      images: ".bg-check-img",
      windowEvents: false
});
kennethcachia commented 10 years ago

Sorry, my fault :) This issue occurs on older browsers, including IE9 (due to recent changes). I'll work on a fix.

jessekahner commented 10 years ago

Ok, the version I have is v1.2.0. Hope that helps!

kennethcachia commented 10 years ago

Fixed in v1.2.1

jessekahner commented 10 years ago

Thanks! All working now!

kennethcachia commented 10 years ago

Great!