source:
node_modules/d3-selection/src/matcher.js@
e4c61dd
| Last change on this file since e4c61dd was e4c61dd, checked in by , 6 months ago | |
|---|---|
|
|
| File size: 211 bytes | |
| Line | |
|---|---|
| 1 | export default function(selector) { |
| 2 | return function() { |
| 3 | return this.matches(selector); |
| 4 | }; |
| 5 | } |
| 6 | |
| 7 | export function childMatcher(selector) { |
| 8 | return function(node) { |
| 9 | return node.matches(selector); |
| 10 | }; |
| 11 | } |
| 12 |
Note:
See TracBrowser
for help on using the repository browser.
