MCPcopy Create free account
hub / github.com/JsAaron/jQuery / genFx

Function genFx

2.1.1/test/jquery-2.1.1.js:6300–6318  ·  view source on GitHub ↗
( type, includeWidth )

Source from the content-addressed store, hash-verified

6298
6299// Generate parameters to create a standard animation
6300function genFx( type, includeWidth ) {
6301 var which,
6302 i = 0,
6303 attrs = { height: type };
6304
6305 // if we include width, step value is 1 to do all cssExpand values,
6306 // if we don't include width, step value is 2 to skip over Left and Right
6307 includeWidth = includeWidth ? 1 : 0;
6308 for ( ; i < 4 ; i += 2 - includeWidth ) {
6309 which = cssExpand[ i ];
6310 attrs[ "margin" + which ] = attrs[ "padding" + which ] = type;
6311 }
6312
6313 if ( includeWidth ) {
6314 attrs.opacity = attrs.width = type;
6315 }
6316
6317 return attrs;
6318}
6319
6320function createTween( value, prop, animation ) {
6321 var tween,

Callers 1

jquery-2.1.1.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected