aboutsummaryrefslogtreecommitdiffstats
path: root/src/css/hiddenVisibleSelectors.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/css/hiddenVisibleSelectors.js')
-rw-r--r--src/css/hiddenVisibleSelectors.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/css/hiddenVisibleSelectors.js b/src/css/hiddenVisibleSelectors.js
index d7a9339dd..1f892dfe0 100644
--- a/src/css/hiddenVisibleSelectors.js
+++ b/src/css/hiddenVisibleSelectors.js
@@ -1,9 +1,6 @@
-define( [
- "../core",
- "../selector"
-], function( jQuery ) {
+import jQuery from "../core.js";
-"use strict";
+import "../selector.js";
jQuery.expr.pseudos.hidden = function( elem ) {
return !jQuery.expr.pseudos.visible( elem );
@@ -11,5 +8,3 @@ jQuery.expr.pseudos.hidden = function( elem ) {
jQuery.expr.pseudos.visible = function( elem ) {
return !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length );
};
-
-} );