equal
deleted
inserted
replaced
|
1 // |
|
2 // Note: assigning to the arguments array simultaneously changes the value of |
|
3 // the corresponding argument! |
|
4 // |
|
5 // TODO The `this` argument probably shouldn't be the first argument to the |
|
6 // callback, anyway, since it's redundant. However, that will require a major |
|
7 // version bump due to backwards compatibility, so I'm not changing it right |
|
8 // away. |
|
9 // |
|
10 d3_selectionPrototype.call = function(callback) { |
|
11 callback.apply(this, (arguments[0] = this, arguments)); |
|
12 return this; |
|
13 }; |