Financial-Times / ftdomdelegate

Create and manage a DOM event delegator
MIT License
320 stars 36 forks source link

IE11 SCRIPT5007: Unable to get property 'call' of undefined or null reference #139

Open Sreilys opened 4 years ago

Sreilys commented 4 years ago

Bug report

What

On IE11 every time I click anywhere on the page I get SCRIPT5007: Unable to get property 'call' of undefined or null reference

Details

Additional information

This happens here:

line 363:

else if (listener.matcher.call(target, listener.matcherParam, target)) {
          toFire.push([event, target, listener]);
 } 

Docs from Microsoft: https://docs.microsoft.com/en-us/scripting/javascript/misc/object-expected