Commit 086de835 authored by Timmy Willison's avatar Timmy Willison Committed by Mike Bostock
Browse files

Shorten selectAll to just `Sizzle`

parent 336f3afc
......@@ -499,9 +499,7 @@
d3_select = function(s, n) {
return Sizzle(s, n)[0] || null;
};
d3_selectAll = function(s, n) {
return Sizzle(s, n);
};
d3_selectAll = Sizzle;
d3_selectMatches = Sizzle.matchesSelector;
}
d3.selection = function() {
......
This diff is collapsed.
......@@ -16,7 +16,7 @@ var d3_select = function(s, n) { return n.querySelector(s); },
// Prefer Sizzle, if available.
if (typeof Sizzle === "function") {
d3_select = function(s, n) { return Sizzle(s, n)[0] || null; };
d3_selectAll = function(s, n) { return Sizzle(s, n); };
d3_selectAll = Sizzle;
d3_selectMatches = Sizzle.matchesSelector;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment