meltingice / CamanJS

Javascript HTML5 (Ca)nvas (Man)ipulation
http://camanjs.com
BSD 3-Clause "New" or "Revised" License
3.55k stars 404 forks source link

addEventListener IE8 not supported, use attachEvent instead? #146

Open tomllobet opened 10 years ago

tomllobet commented 10 years ago

Hello,

I get this error on init: Object doesn't support property or method 'addEventListener'.

I understand that 'attachEvent' must be used for IE8 and below because it doesn't support 'addEventListener'. I also understand that IE8 and below does not support , but that isn't the issue. This error is shorting the rest of my js that follows the camanjs load.

Could we get a check added to see if 'addEventListener' is defined and if not then use 'attachEvent'?

Thanks!

evansantos commented 9 years ago

@tomllobet had you found out an workaround ? i've been caught by the same issue :-1: