diff --git a/js/tinyDOM.js b/js/tinyDOM.js index d5d118a66b992e883a5b516ebd7383430e6ad82d..3a0f70df9ab1938553d972706c37de8826dce1c1 100644 --- a/js/tinyDOM.js +++ b/js/tinyDOM.js @@ -84,7 +84,7 @@ matched = true; } else { target = target.parentNode; - if(!target || !target.matches){ + if(!target || !target.matches || target === e){ matched = true; } }