diff options
Diffstat (limited to 'bower_components/jquery/src/css/var')
-rw-r--r-- | bower_components/jquery/src/css/var/cssExpand.js | 3 | ||||
-rw-r--r-- | bower_components/jquery/src/css/var/getStyles.js | 5 | ||||
-rw-r--r-- | bower_components/jquery/src/css/var/isHidden.js | 13 | ||||
-rw-r--r-- | bower_components/jquery/src/css/var/rmargin.js | 3 | ||||
-rw-r--r-- | bower_components/jquery/src/css/var/rnumnonpx.js | 5 |
5 files changed, 29 insertions, 0 deletions
diff --git a/bower_components/jquery/src/css/var/cssExpand.js b/bower_components/jquery/src/css/var/cssExpand.js new file mode 100644 index 00000000..91e90a88 --- /dev/null +++ b/bower_components/jquery/src/css/var/cssExpand.js @@ -0,0 +1,3 @@ +define(function() { + return [ "Top", "Right", "Bottom", "Left" ]; +}); diff --git a/bower_components/jquery/src/css/var/getStyles.js b/bower_components/jquery/src/css/var/getStyles.js new file mode 100644 index 00000000..26cc0a25 --- /dev/null +++ b/bower_components/jquery/src/css/var/getStyles.js @@ -0,0 +1,5 @@ +define(function() { + return function( elem ) { + return elem.ownerDocument.defaultView.getComputedStyle( elem, null ); + }; +}); diff --git a/bower_components/jquery/src/css/var/isHidden.js b/bower_components/jquery/src/css/var/isHidden.js new file mode 100644 index 00000000..15ab81a9 --- /dev/null +++ b/bower_components/jquery/src/css/var/isHidden.js @@ -0,0 +1,13 @@ +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/bower_components/jquery/src/css/var/rmargin.js b/bower_components/jquery/src/css/var/rmargin.js new file mode 100644 index 00000000..da0438db --- /dev/null +++ b/bower_components/jquery/src/css/var/rmargin.js @@ -0,0 +1,3 @@ +define(function() { + return (/^margin/); +}); diff --git a/bower_components/jquery/src/css/var/rnumnonpx.js b/bower_components/jquery/src/css/var/rnumnonpx.js new file mode 100644 index 00000000..c93be285 --- /dev/null +++ b/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" ); +}); |