| author | Nicolas Sauret <nicolas.sauret@iri.centrepompidou.fr> |
| Thu, 10 Apr 2014 14:20:23 +0200 | |
| changeset 47 | c0b4a8b5a012 |
| permissions | -rw-r--r-- |
// // Note: assigning to the arguments array simultaneously changes the value of // the corresponding argument! // // TODO The `this` argument probably shouldn't be the first argument to the // callback, anyway, since it's redundant. However, that will require a major // version bump due to backwards compatibility, so I'm not changing it right // away. // d3_selectionPrototype.call = function(callback) { callback.apply(this, (arguments[0] = this, arguments)); return this; };