aboutsummaryrefslogtreecommitdiffstats
path: root/src/offset.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/offset.js')
-rw-r--r--src/offset.js22
1 files changed, 9 insertions, 13 deletions
diff --git a/src/offset.js b/src/offset.js
index 91c96d877..7d98083b9 100644
--- a/src/offset.js
+++ b/src/offset.js
@@ -1,14 +1,11 @@
-define( [
- "./core",
- "./core/access",
- "./var/documentElement",
- "./var/isWindow",
- "./core/init",
- "./css",
- "./selector" // contains
-], function( jQuery, access, documentElement, isWindow ) {
-
-"use strict";
+import jQuery from "./core.js";
+import access from "./core/access.js";
+import documentElement from "./var/documentElement.js";
+import isWindow from "./var/isWindow.js";
+
+import "./core/init.js";
+import "./css.js";
+import "./selector.js"; // contains
jQuery.offset = {
setOffset: function( elem, options, i ) {
@@ -201,5 +198,4 @@ jQuery.each( { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function(
};
} );
-return jQuery;
-} );
+export default jQuery;