Blame view

bower_components/jquery/src/css/hiddenVisibleSelectors.js 380 Bytes
74249687   Luigi Serra   Cross browser con...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 );
  };
  
  });