MCPcopy Index your code
hub / github.com/stemkoski/stemkoski.github.com / styleDifference

Function styleDifference

Three.js/js/jquery-ui.js:5474–5490  ·  view source on GitHub ↗
( oldStyle, newStyle )

Source from the content-addressed store, hash-verified

5472
5473
5474function styleDifference( oldStyle, newStyle ) {
5475 var diff = {},
5476 name, value;
5477
5478 for ( name in newStyle ) {
5479 value = newStyle[ name ];
5480 if ( oldStyle[ name ] !== value ) {
5481 if ( !shorthandStyles[ name ] ) {
5482 if ( $.fx.step[ name ] || !isNaN( parseFloat( value ) ) ) {
5483 diff[ name ] = value;
5484 }
5485 }
5486 }
5487 }
5488
5489 return diff;
5490}
5491
5492// support: jQuery <1.8
5493if ( !$.fn.addBack ) {

Callers 1

jquery-ui.jsFile · 0.85

Calls 1

isNaNFunction · 0.85

Tested by

no test coverage detected