Skip to content

Commit

Permalink
Merge pull request #45 from canjs/edge-14
Browse files Browse the repository at this point in the history
Support Edge 14
  • Loading branch information
m-mujica authored Mar 5, 2018
2 parents afaaef9 + 174746d commit b75d558
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion helpers/-make-delegate-event-tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ function makeDelegator (domEvents) {
do {
// document does not implement `.matches` but documentElement does
var el = cur === document ? document.documentElement : cur;
if (el.matches(selector)) {
var matches = el.matches || el.msMatchesSelector;

if (matches.call(el, selector)) {
handlers.forEach(function(handler){
handler.call(el, ev);
});
Expand Down

0 comments on commit b75d558

Please sign in to comment.