aboutsummaryrefslogtreecommitdiffstats
path: root/src/offset.js
diff options
context:
space:
mode:
authorjeresig <jeresig@gmail.com>2010-09-08 12:00:29 -0400
committerjeresig <jeresig@gmail.com>2010-09-08 12:00:29 -0400
commita44ec402771f6d622506f39073d0be260400dd21 (patch)
tree0f9c5ad37ea56d5366ae6c5f15c420c490ac8ad5 /src/offset.js
parentb920f0aeb483f4565ff2f3c1d2a328d5200b23f7 (diff)
downloadjquery-a44ec402771f6d622506f39073d0be260400dd21.tar.gz
jquery-a44ec402771f6d622506f39073d0be260400dd21.zip
Make sure that jQuery works even when the individual modules are loaded separately AND jQuery.noConflict(true) is used. Fixes #7011.
Diffstat (limited to 'src/offset.js')
-rw-r--r--src/offset.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/offset.js b/src/offset.js
index bab253ba2..5d283aacf 100644
--- a/src/offset.js
+++ b/src/offset.js
@@ -1,3 +1,5 @@
+(function( jQuery ) {
+
if ( "getBoundingClientRect" in document.documentElement ) {
jQuery.fn.offset = function( options ) {
var elem = this[0];
@@ -281,3 +283,5 @@ function getWindow( elem ) {
elem.defaultView || elem.parentWindow :
false;
}
+
+})( jQuery );