ie8 ... addEventListener problem running Angularjs 1.2.0 rc3
502 views
Skip to first unread message
Jeff Pogodzinski
unread,
Oct 25, 2013, 10:06:27 AM10/25/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ang...@googlegroups.com
Dear Group,
Can someone please help me with a work around the following ie8 error: ?
"TypeError: Object doesn't support property or method 'addEventListener' "
I am using Angularjs 1.2.0 rc3
Thank you, Jeff.
David Aschenheimer
unread,
Oct 26, 2013, 10:06:32 AM10/26/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ang...@googlegroups.com
That's an angular error? They must have dropped support for ie8. Are you sure it is not a jQuery error? - Just curious.
Sebastian Sebald
unread,
Oct 27, 2013, 5:42:59 PM10/27/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ang...@googlegroups.com
I read somewhere that IE8 support was dropped. Use a polyfill/shiv and you should be fine :-)
Daniel Tabuenca
unread,
Oct 27, 2013, 6:54:10 PM10/27/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ang...@googlegroups.com
Support for IE8 has not been dropped from angular as far as I can tell from the code. Angular's jqLite implementation will check and use attachEvent if addEventListener is not there. What is likely happening is you are likely using jquery 2.x which does not support IE8. Keep in mind that angular will delegate to jQuery rather than it's own jqlite implementation if jQuery is detected. Either don't use jquery and stick to angular's jqlite, or use jquery 1.x series which still support legacy IE versions.