Welcome to mirror list, hosted at ThFree Co, Russian Federation.

isHidden.js « var « css « src « jquery « bower_components « libs - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 15ab81a979815ebfa61eb748188923205cf9aad6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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 );
	};
});