From 86b59d40f659311d8be283bda1898afd2126782d Mon Sep 17 00:00:00 2001 From: Ziggy Jonsson Date: Thu, 7 Feb 2013 09:37:29 -0500 Subject: [PATCH] Ignore arguments length. Return target if and only if the returned value is the source. --- src/core/rebind.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/rebind.js b/src/core/rebind.js index eddb11bd..d6118464 100644 --- a/src/core/rebind.js +++ b/src/core/rebind.js @@ -11,6 +11,6 @@ d3.rebind = function(target, source) { function d3_rebind(target, source, method) { return function() { var value = method.apply(source, arguments); - return arguments.length || value === source ? target : value; + return value === source ? target : value; }; }