select-parent
Advanced tools
Comparing version 1.0.0 to 1.0.1
'use strict'; | ||
var curry = require('./curry') | ||
var matches = require('./matches') | ||
var matches | ||
module.exports = curry(function(selector, node){ | ||
matches = matches || require('./matches') | ||
while (node = node.parentElement){ | ||
@@ -8,0 +11,0 @@ if (matches.call(node, selector)){ |
{ | ||
"name": "select-parent", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "querySelector but for parent nodes", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
3868
39