Skip to content

Commit

Permalink
Merge branch '2.9.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Jun 19, 2012
2 parents b6153d2 + 4ff1d66 commit ad43a2e
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 19 deletions.
6 changes: 3 additions & 3 deletions d3.v2.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ try {
d3_style_setProperty.call(this, name, value + "", priority);
};
}
d3 = {version: "2.9.3"}; // semver
d3 = {version: "2.9.4"}; // semver
function d3_class(ctor, properties) {
try {
for (var key in properties) {
Expand Down Expand Up @@ -494,7 +494,7 @@ d3.xhr = function(url, mime, callback) {
req.onreadystatechange = function() {
if (req.readyState === 4) {
var s = req.status;
callback(s >= 200 && s < 300 || s === 304 ? req : null);
callback(!s && req.response || s >= 200 && s < 300 || s === 304 ? req : null);
}
};
req.send(null);
Expand Down Expand Up @@ -1515,7 +1515,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]; };
d3_select = function(s, n) { return Sizzle(s, n)[0] || null; };
d3_selectAll = function(s, n) { return Sizzle.uniqueSort(Sizzle(s, n)); };
d3_selectMatches = Sizzle.matchesSelector;
}
Expand Down
6 changes: 3 additions & 3 deletions d3.v2.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "d3",
"version": "2.9.3",
"version": "2.9.4",
"description": "A small, free JavaScript library for manipulating documents based on data.",
"keywords": [
"dom",
Expand Down
2 changes: 1 addition & 1 deletion src/core/core.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
d3 = {version: "2.9.3"}; // semver
d3 = {version: "2.9.4"}; // semver
2 changes: 1 addition & 1 deletion src/core/selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,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]; };
d3_select = function(s, n) { return Sizzle(s, n)[0] || null; };
d3_selectAll = function(s, n) { return Sizzle.uniqueSort(Sizzle(s, n)); };
d3_selectMatches = Sizzle.matchesSelector;
}
Expand Down
2 changes: 1 addition & 1 deletion src/core/xhr.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ d3.xhr = function(url, mime, callback) {
req.onreadystatechange = function() {
if (req.readyState === 4) {
var s = req.status;
callback(s >= 200 && s < 300 || s === 304 ? req : null);
callback(!s && req.response || s >= 200 && s < 300 || s === 304 ? req : null);
}
};
req.send(null);
Expand Down
22 changes: 13 additions & 9 deletions test/core/transition-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,32 +34,36 @@ suite.export(module);

var suite = vows.describe("transition");

// Subtransitions
suite.addBatch({

// Subtransitions
"select": require("./transition-test-select"),
"selectAll": require("./transition-test-selectAll"),
"transition": require("./transition-test-transition"),
"transition": require("./transition-test-transition")
});

// Content
// Content
suite.addBatch({
"attr": require("./transition-test-attr"),
"attrTween": require("./transition-test-attrTween"),
"style": require("./transition-test-style"),
"styleTween": require("./transition-test-styleTween"),
"text": require("./transition-test-text"),
"remove": require("./transition-test-remove"),
"remove": require("./transition-test-remove")
});

// Animation
// Animation
suite.addBatch({
"delay": require("./transition-test-delay"),
"duration": require("./transition-test-duration"),
"duration": require("./transition-test-duration")
});

// Control
// Control
suite.addBatch({
"each": require("./transition-test-each"),
"call": require("./transition-test-call"),
"tween": require("./transition-test-tween"),
"id": require("./transition-test-id"),
"time": require("./transition-test-time")

});

suite.export(module);

0 comments on commit ad43a2e

Please sign in to comment.