Sha256: ff74f52e6cf9bb0e70af09b7c23e58b6d8f38b1fb054549f070518447fb13990

Contents?: true

Size: 582 Bytes

Versions: 6

Compression:

Stored size: 582 Bytes

Contents

function d3_selection(groups) {
  d3_arraySubclass(groups, d3_selectionPrototype);
  return groups;
}

var d3_select = function(s, n) { return n.querySelector(s); },
    d3_selectAll = function(s, n) { return n.querySelectorAll(s); };

// Prefer Sizzle, if available.
if (typeof Sizzle === "function") {
  d3_select = function(s, n) { return Sizzle(s, n)[0]; };
  d3_selectAll = function(s, n) { return Sizzle.uniqueSort(Sizzle(s, n)); };
}

var d3_selectionPrototype = [];

d3.selection = function() {
  return d3_selectionRoot;
};

d3.selection.prototype = d3_selectionPrototype;

Version data entries

6 entries across 6 versions & 1 rubygems

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