diff --git a/src/core.js b/src/core.js
index 2e6347236..1e1bd3ef1 100644
--- a/src/core.js
+++ b/src/core.js
@@ -1076,6 +1076,6 @@ function doScrollCheck() {
}
// Expose jQuery to the global object
-return (window.jQuery = window.$ = jQuery);
+return jQuery;
})();
diff --git a/src/outro.js b/src/outro.js
index 7773a74fd..32b0d0878 100644
--- a/src/outro.js
+++ b/src/outro.js
@@ -1 +1,2 @@
+window.jQuery = window.$ = jQuery;
})(window);
diff --git a/test/data/offset/absolute.html b/test/data/offset/absolute.html
index dc0ba22f2..b4db30a6c 100644
--- a/test/data/offset/absolute.html
+++ b/test/data/offset/absolute.html
@@ -26,7 +26,7 @@