(value, prop, animation)
| 69 | } |
| 70 | |
| 71 | function createTween(value, prop, animation) { |
| 72 | var tween, |
| 73 | collection = (tweeners[prop] || []).concat(tweeners["*"]), |
| 74 | index = 0, |
| 75 | length = collection.length; |
| 76 | for (; index < length; index++) { |
| 77 | if ((tween = collection[index].call(animation, prop, value))) { |
| 78 | |
| 79 | // we're done with this property |
| 80 | return tween; |
| 81 | } |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | function Animation(elem, properties, options) { |
| 86 | var result, |