Comparing version 0.3.0 to 0.3.1
Changelog | ||
========= | ||
### 0.3.1 (September 18, 2016) | ||
* Add support for `path` in addition to `deepPath` | ||
### 0.3.0 (August 2, 2016) | ||
* Add explicit `window` namespace to `Element` | ||
### 0.2.2 (June 2, 2016) | ||
@@ -5,0 +13,0 @@ |
@@ -26,4 +26,5 @@ var closest = require('./closest'); | ||
// check the deep nodes. | ||
if (opts.deep && typeof event.deepPath == 'function') { | ||
var path = event.deepPath(); | ||
if (opts.deep && (event.path || event.deepPath)) { | ||
var path = typeof event.deepPath == 'function' ? | ||
event.deepPath() : event.path; | ||
for (var i = 0, node; node = path[i]; i++) { | ||
@@ -30,0 +31,0 @@ if (node.nodeType == 1 && matches(node, selector)) { |
{ | ||
"name": "dom-utils", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "A small, modular DOM utilities library", | ||
@@ -34,17 +34,2 @@ "scripts": { | ||
[ | ||
"Windows 10", | ||
"chrome", | ||
"latest" | ||
], | ||
[ | ||
"Linux", | ||
"firefox", | ||
"latest" | ||
], | ||
[ | ||
"OS X 10.11", | ||
"safari", | ||
"9" | ||
], | ||
[ | ||
"OS X 10.8", | ||
@@ -75,7 +60,2 @@ "safari", | ||
[ | ||
"Windows XP", | ||
"internet explorer", | ||
"8" | ||
], | ||
[ | ||
"OS X 10.10", | ||
@@ -82,0 +62,0 @@ "iPhone", |
@@ -168,6 +168,9 @@ var assert = require('assert'); | ||
// TODO(philipwalton): at the moment this test doesn't work in any | ||
// browser because events triggered via JavaScript do not seem to buble | ||
// outside of the shadow root. | ||
it('can delegate to elements inside a shadow tree', function() { | ||
// Skips this test in unsupporting browsers. | ||
if (!Element.prototype.attachShadow) this.skip(); | ||
if (!('deepPath' in Event.prototype)) this.skip(); | ||
@@ -174,0 +177,0 @@ afixShadowDom(); |
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
31804
698