diff options
author | 2018-10-29 18:38:10 +0200 | |
---|---|---|
committer | 2018-10-29 18:38:10 +0200 | |
commit | bb60d2fc7c06ec661e4c66ac8778e1f2070103cd (patch) | |
tree | 2497848e3667f0ec99b2bea61e129c52dd37db60 /app/bower_components/jquery/src/css/var | |
parent | bdc15ad66739869abef7413e5da40191875781d1 (diff) |
Sync code3.0.0-ONAP1.2.0casablanca
Sync the code between repositories
Change-Id: Ic431c58c68716b6d401954fb854a183e0d222f57
Issue-ID: SDC-1874
Signed-off-by: Eran (ev672n), Vosk <ev672n@att.com>
Diffstat (limited to 'app/bower_components/jquery/src/css/var')
6 files changed, 66 insertions, 0 deletions
diff --git a/app/bower_components/jquery/src/css/var/cssExpand.js b/app/bower_components/jquery/src/css/var/cssExpand.js new file mode 100644 index 0000000..9f8194d --- /dev/null +++ b/app/bower_components/jquery/src/css/var/cssExpand.js @@ -0,0 +1,3 @@ +define( function() { + return [ "Top", "Right", "Bottom", "Left" ]; +} ); diff --git a/app/bower_components/jquery/src/css/var/getStyles.js b/app/bower_components/jquery/src/css/var/getStyles.js new file mode 100644 index 0000000..02a4b81 --- /dev/null +++ b/app/bower_components/jquery/src/css/var/getStyles.js @@ -0,0 +1,15 @@ +define( function() { + return function( elem ) { + + // Support: IE<=11+, Firefox<=30+ (#15098, #14150) + // IE throws on elements created in popups + // FF meanwhile throws on frame elements through "defaultView.getComputedStyle" + var view = elem.ownerDocument.defaultView; + + if ( !view || !view.opener ) { + view = window; + } + + return view.getComputedStyle( elem ); + }; +} ); diff --git a/app/bower_components/jquery/src/css/var/isHidden.js b/app/bower_components/jquery/src/css/var/isHidden.js new file mode 100644 index 0000000..7997eff --- /dev/null +++ b/app/bower_components/jquery/src/css/var/isHidden.js @@ -0,0 +1,16 @@ +define( [ + "../../core", + "../../selector" + + // css is assumed +], function( jQuery ) { + + return function( elem, el ) { + + // isHidden might be called from jQuery#filter function; + // in that case, element will be second argument + elem = el || elem; + return jQuery.css( elem, "display" ) === "none" || + !jQuery.contains( elem.ownerDocument, elem ); + }; +} ); diff --git a/app/bower_components/jquery/src/css/var/rmargin.js b/app/bower_components/jquery/src/css/var/rmargin.js new file mode 100644 index 0000000..9be2212 --- /dev/null +++ b/app/bower_components/jquery/src/css/var/rmargin.js @@ -0,0 +1,3 @@ +define( function() { + return ( /^margin/ ); +} ); diff --git a/app/bower_components/jquery/src/css/var/rnumnonpx.js b/app/bower_components/jquery/src/css/var/rnumnonpx.js new file mode 100644 index 0000000..ed13f0b --- /dev/null +++ b/app/bower_components/jquery/src/css/var/rnumnonpx.js @@ -0,0 +1,5 @@ +define( [ + "../../var/pnum" +], function( pnum ) { + return new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" ); +} ); diff --git a/app/bower_components/jquery/src/css/var/swap.js b/app/bower_components/jquery/src/css/var/swap.js new file mode 100644 index 0000000..b6d3b67 --- /dev/null +++ b/app/bower_components/jquery/src/css/var/swap.js @@ -0,0 +1,24 @@ +define( function() { + +// A method for quickly swapping in/out CSS properties to get correct calculations. +return function( elem, options, callback, args ) { + var ret, name, + old = {}; + + // Remember the old values, and insert the new ones + for ( name in options ) { + old[ name ] = elem.style[ name ]; + elem.style[ name ] = options[ name ]; + } + + ret = callback.apply( elem, args || [] ); + + // Revert the old values + for ( name in options ) { + elem.style[ name ] = old[ name ]; + } + + return ret; +}; + +} ); |