| 4395 | } |
| 4396 | |
| 4397 | function transition_tween(name, value) { |
| 4398 | var id = this._id; |
| 4399 | |
| 4400 | name += ""; |
| 4401 | |
| 4402 | if (arguments.length < 2) { |
| 4403 | var tween = get(this.node(), id).tween; |
| 4404 | for (var i = 0, n = tween.length, t; i < n; ++i) { |
| 4405 | if ((t = tween[i]).name === name) { |
| 4406 | return t.value; |
| 4407 | } |
| 4408 | } |
| 4409 | return null; |
| 4410 | } |
| 4411 | |
| 4412 | return this.each((value == null ? tweenRemove : tweenFunction)(id, name, value)); |
| 4413 | } |
| 4414 | |
| 4415 | function tweenValue(transition, name, value) { |
| 4416 | var id = transition._id; |