Skip to content

Commit f90bc4f

Browse files
committed
Avoid a bug in UglifyJS.
See <mishoo/UglifyJS#215>.
1 parent 7a1f67b commit f90bc4f

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

d3.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ try {
1010
d3_style_setProperty.call(this, name, value + "", priority);
1111
};
1212
}
13-
d3 = {version: "2.1.2"}; // semver
13+
d3 = {version: "2.1.3"}; // semver
1414
var d3_arraySubclass = [].__proto__?
1515

1616
// Until ECMAScript supports array subclassing, prototype injection works well.
@@ -3544,7 +3544,7 @@ d3.svg.axis = function() {
35443544

35453545
// Domain.
35463546
var range = d3_scaleExtent(scale.range()),
3547-
path = g.selectAll(".domain").data([,]),
3547+
path = g.selectAll(".domain").data([0]),
35483548
pathEnter = path.enter().append("svg:path").attr("class", "domain"),
35493549
pathUpdate = transition(path);
35503550

d3.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/core/core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
d3 = {version: "2.1.2"}; // semver
1+
d3 = {version: "2.1.3"}; // semver

src/svg/axis.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ d3.svg.axis = function() {
3333

3434
// Domain.
3535
var range = d3_scaleExtent(scale.range()),
36-
path = g.selectAll(".domain").data([,]),
36+
path = g.selectAll(".domain").data([0]),
3737
pathEnter = path.enter().append("svg:path").attr("class", "domain"),
3838
pathUpdate = transition(path);
3939

0 commit comments

Comments
 (0)