[BUGFIX] indexOf eventlistener performance improvement

Fixes #3917
Merge pull request #4023 from twokul/ie8-perf-fix

[BUGFIX] indexOf eventlistener performance improvement