( value, prop, animation )
| 8046 | } |
| 8047 | |
| 8048 | function createTween( value, prop, animation ) { |
| 8049 | var tween, |
| 8050 | collection = ( tweeners[ prop ] || [] ).concat( tweeners[ "*" ] ), |
| 8051 | index = 0, |
| 8052 | length = collection.length; |
| 8053 | for ( ; index < length; index++ ) { |
| 8054 | if ( (tween = collection[ index ].call( animation, prop, value )) ) { |
| 8055 | |
| 8056 | // we're done with this property |
| 8057 | return tween; |
| 8058 | } |
| 8059 | } |
| 8060 | } |
| 8061 | |
| 8062 | function Animation( elem, properties, options ) { |
| 8063 | var result, |