( type, num )
| 327 | |
| 328 | // Generate parameters to create a standard animation |
| 329 | function genFx( type, num ) { |
| 330 | var obj = {}; |
| 331 | |
| 332 | jQuery.each( fxAttrs.concat.apply([], fxAttrs.slice( 0, num )), function() { |
| 333 | obj[ this ] = type; |
| 334 | }); |
| 335 | |
| 336 | return obj; |
| 337 | } |
| 338 | |
| 339 | // Generate shortcuts for custom animations |
| 340 | jQuery.each({ |