There was an error while loading. Please reload this page.
1 parent 35ac9dd commit c593abeCopy full SHA for c593abe
1 file changed
src/core/rebind.js
@@ -11,6 +11,6 @@ d3.rebind = function(target, source) {
11
function d3_rebind(target, source, method) {
12
return function() {
13
var value = method.apply(source, arguments);
14
- return arguments.length ? target : value;
+ return arguments.length || value === source ? target : value;
15
};
16
}
0 commit comments