diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-15 04:36:40 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-05-15 04:36:40 +0200 |
commit | 04e421cf2f4f801d7e5e6b1fbdb8221855ad4613 (patch) | |
tree | 4a5e0b5a447ed75813fd4ef92c35f2e2fb4f1ac8 /js/vendor/jquery/src/css/hiddenVisibleSelectors.js | |
parent | adb9dfeb350bdb92e998fefc2827ffe8b58256a2 (diff) |
add basic files for js rewrite
Diffstat (limited to 'js/vendor/jquery/src/css/hiddenVisibleSelectors.js')
-rw-r--r-- | js/vendor/jquery/src/css/hiddenVisibleSelectors.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/js/vendor/jquery/src/css/hiddenVisibleSelectors.js b/js/vendor/jquery/src/css/hiddenVisibleSelectors.js new file mode 100644 index 000000000..c7f1c7ee7 --- /dev/null +++ b/js/vendor/jquery/src/css/hiddenVisibleSelectors.js @@ -0,0 +1,15 @@ +define([ + "../core", + "../selector" +], function( jQuery ) { + +jQuery.expr.filters.hidden = function( elem ) { + // Support: Opera <= 12.12 + // Opera reports offsetWidths and offsetHeights less than zero on some elements + return elem.offsetWidth <= 0 && elem.offsetHeight <= 0; +}; +jQuery.expr.filters.visible = function( elem ) { + return !jQuery.expr.filters.hidden( elem ); +}; + +}); |