summaryrefslogtreecommitdiff
path: root/bower_components/jquery/src/css/var
diff options
context:
space:
mode:
authorThomas Park <thomas@thomaspark.me>2014-11-01 21:05:20 -0400
committerThomas Park <thomas@thomaspark.me>2014-11-01 21:05:20 -0400
commit918b2a49ca6ac074bac47f6685cf3a687a4c6212 (patch)
tree5d11a2820c6e0726a6ee071724557d12a90c6709 /bower_components/jquery/src/css/var
parent5c12c8a99c04fbff7d13e97679121a5de13e01d6 (diff)
3.2.0 -> 3.3.0
Diffstat (limited to 'bower_components/jquery/src/css/var')
-rw-r--r--bower_components/jquery/src/css/var/cssExpand.js3
-rw-r--r--bower_components/jquery/src/css/var/getStyles.js5
-rw-r--r--bower_components/jquery/src/css/var/isHidden.js13
-rw-r--r--bower_components/jquery/src/css/var/rmargin.js3
-rw-r--r--bower_components/jquery/src/css/var/rnumnonpx.js5
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" );
+});