MCPcopy Create free account
hub / github.com/TruthHun/DocHub / styleDifference

Function styleDifference

static/Home/default/js/flat-ui.js:3331–3347  ·  view source on GitHub ↗
( oldStyle, newStyle )

Source from the content-addressed store, hash-verified

3329
3330
3331function styleDifference( oldStyle, newStyle ) {
3332 var diff = {},
3333 name, value;
3334
3335 for ( name in newStyle ) {
3336 value = newStyle[ name ];
3337 if ( oldStyle[ name ] !== value ) {
3338 if ( !shorthandStyles[ name ] ) {
3339 if ( $.fx.step[ name ] || !isNaN( parseFloat( value ) ) ) {
3340 diff[ name ] = value;
3341 }
3342 }
3343 }
3344 }
3345
3346 return diff;
3347}
3348
3349// support: jQuery <1.8
3350if ( !$.fn.addBack ) {

Callers 1

flat-ui.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected