1.0.0 • Published 9 years ago
acquire-anchor v1.0.0
Acquire anchor
A function that given a node will return the nearest anchor node starting at the passed node and walking up the tree until there are no more parent nodes.
To use
var acquireAnchor = require('acquire-anchor');
var childNode = document.querySelector('.child-node');
var anchorNode = acquireAnchor(childNode);
1.0.0
9 years ago