1
d3_selectionPrototype.filter = function(filter) {
7
if (typeof filter !== "function") filter = d3_selection_filter(filter);
9
for (var j = 0, m = this.length; j < m; j++) {
10
subgroups.push(subgroup = []);
11
subgroup.parentNode = (group = this[j]).parentNode;
12
for (var i = 0, n = group.length; i < n; i++) {
13
if ((node = group[i]) && filter.call(node, node.__data__, i)) {
19
return d3_selection(subgroups);
22
function d3_selection_filter(selector) {
24
return d3_selectMatches(this, selector);