Fixing `element.dispatch()` for IE8
Merge pull request #288 from avoidwork/edge

Minor fix