mirror of
https://github.com/jquery/jquery.git
synced 2026-02-04 18:45:03 -05:00
3
src/css/var/cssExpand.js
Normal file
3
src/css/var/cssExpand.js
Normal file
@@ -0,0 +1,3 @@
|
||||
define(function() {
|
||||
return [ "Top", "Right", "Bottom", "Left" ];
|
||||
});
|
||||
13
src/css/var/isHidden.js
Normal file
13
src/css/var/isHidden.js
Normal file
@@ -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 );
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user