Sha256: 333cba4fca455bdd48217e3baf16e491522406e9b1b9fc1b95dfc0b4a26712c1

Contents?: true

Size: 735 Bytes

Versions: 6

Compression:

Stored size: 735 Bytes

Contents

d3_transitionPrototype.select = function(selector) {
  var subgroups = [],
      subgroup,
      subnode,
      node;

  if (typeof selector !== "function") selector = d3_selection_selector(selector);

  for (var j = -1, m = this.length; ++j < m;) {
    subgroups.push(subgroup = []);
    for (var group = this[j], i = -1, n = group.length; ++i < n;) {
      if ((node = group[i]) && (subnode = selector.call(node.node, node.node.__data__, i))) {
        if ("__data__" in node.node) subnode.__data__ = node.node.__data__;
        subgroup.push({node: subnode, delay: node.delay, duration: node.duration});
      } else {
        subgroup.push(null);
      }
    }
  }

  return d3_transition(subgroups, this.id).ease(this.ease());
};

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bum-0.0.17 public/d3/src/core/transition-select.js
bum-0.0.16 public/d3/src/core/transition-select.js
bum-0.0.15 public/d3/src/core/transition-select.js
bum-0.0.14 public/d3/src/core/transition-select.js
bum-0.0.13 public/d3/src/core/transition-select.js
bum-0.0.12 public/d3/src/core/transition-select.js