Comparing version 1.0.2 to 1.0.3
@@ -34,3 +34,3 @@ !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;"undefined"!=typeof window?n=window:"undefined"!=typeof global?n=global:"undefined"!=typeof self&&(n=self),n.consign=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | ||
if (el) { | ||
if (el[matchesSelector](selector)) { | ||
if (el[matchesSelector] && el[matchesSelector](selector)) { | ||
if (contains(parent, el)) { | ||
@@ -43,4 +43,6 @@ return el; | ||
if (el.parentNode !== parent) { | ||
if (el.parentNode && el.parentNode !== parent) { | ||
return find(el.parentNode); | ||
} else { | ||
return false; | ||
} | ||
@@ -47,0 +49,0 @@ } else { |
@@ -1,1 +0,1 @@ | ||
!function(a){if("object"==typeof exports&&"undefined"!=typeof module){module.exports=a()}else{if("function"==typeof define&&define.amd){define([],a)}else{var b;"undefined"!=typeof window?b=window:"undefined"!=typeof global?b=global:"undefined"!=typeof self&&(b=self),b.consign=a()}}}(function(){var d,b,a;return(function c(f,k,h){function g(q,n){if(!k[q]){if(!f[q]){var m=typeof require=="function"&&require;if(!n&&m){return m(q,!0)}if(e){return e(q,!0)}var p=new Error("Cannot find module '"+q+"'");throw p.code="MODULE_NOT_FOUND",p}var i=k[q]={exports:{}};f[q][0].call(i.exports,function(l){var o=f[q][1][l];return g(o?o:l)},i,i.exports,c,f,k,h)}return k[q].exports}var e=typeof require=="function"&&require;for(var j=0;j<h.length;j++){g(h[j])}return g})({1:[function(g,i,f){function k(){var q,p=["matchesSelector","mozMatchesSelector","webkitMatchesSelector","oMatchesSelector","msMatchesSelector"];for(var n=0,m=p.length;n<m;n++){var o=p[n];if(o in document.documentElement){q=o;break}}return q}var e=k();function h(m,l){if(l.parentNode){if(l.parentNode===m){return true}else{return h(m,l.parentNode)}}else{return false}}function j(o,p,l,n,m){o.addEventListener(p,function(r){var q=function s(t){if(t){if(t[e](l)){if(h(o,t)){return t}else{return false}}if(t.parentNode!==o){return s(t.parentNode)}}else{return false}}(r.target);if(q){m=m||q;n.apply(m,arguments)}},false)}i.exports=j},{}]},{},[1])(1)}); | ||
!function(a){if("object"==typeof exports&&"undefined"!=typeof module){module.exports=a()}else{if("function"==typeof define&&define.amd){define([],a)}else{var b;"undefined"!=typeof window?b=window:"undefined"!=typeof global?b=global:"undefined"!=typeof self&&(b=self),b.consign=a()}}}(function(){var d,b,a;return(function c(f,k,h){function g(q,n){if(!k[q]){if(!f[q]){var m=typeof require=="function"&&require;if(!n&&m){return m(q,!0)}if(e){return e(q,!0)}var p=new Error("Cannot find module '"+q+"'");throw p.code="MODULE_NOT_FOUND",p}var i=k[q]={exports:{}};f[q][0].call(i.exports,function(l){var o=f[q][1][l];return g(o?o:l)},i,i.exports,c,f,k,h)}return k[q].exports}var e=typeof require=="function"&&require;for(var j=0;j<h.length;j++){g(h[j])}return g})({1:[function(g,i,f){function k(){var q,p=["matchesSelector","mozMatchesSelector","webkitMatchesSelector","oMatchesSelector","msMatchesSelector"];for(var n=0,m=p.length;n<m;n++){var o=p[n];if(o in document.documentElement){q=o;break}}return q}var e=k();function h(m,l){if(l.parentNode){if(l.parentNode===m){return true}else{return h(m,l.parentNode)}}else{return false}}function j(o,p,l,n,m){o.addEventListener(p,function(r){var q=function s(t){if(t){if(t[e]&&t[e](l)){if(h(o,t)){return t}else{return false}}if(t.parentNode&&t.parentNode!==o){return s(t.parentNode)}else{return false}}else{return false}}(r.target);if(q){m=m||q;n.apply(m,arguments)}},false)}i.exports=j},{}]},{},[1])(1)}); |
@@ -33,3 +33,3 @@ function findMatches() { | ||
if (el) { | ||
if (el[matchesSelector](selector)) { | ||
if (el[matchesSelector] && el[matchesSelector](selector)) { | ||
if (contains(parent, el)) { | ||
@@ -42,4 +42,6 @@ return el; | ||
if (el.parentNode !== parent) { | ||
if (el.parentNode && el.parentNode !== parent) { | ||
return find(el.parentNode); | ||
} else { | ||
return false; | ||
} | ||
@@ -46,0 +48,0 @@ } else { |
{ | ||
"name": "consign", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "dom event delegation", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6789
108