Ignore arguments length. Return target if and only if the returned value is the source.

This commit is contained in:
Ziggy Jonsson 2013-02-07 09:37:29 -05:00
Родитель c593abe6d8
Коммит 86b59d40f6
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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;
};
}