X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Foffset.js;h=c38a7f2163e1c55733731478f9c61026f46bcff5;hb=bca576550249e9b79b1097669dff6d4ddd0d65cf;hp=0ce4c1979c652bd2dd7da78d060cb1d3a02c2486;hpb=116f3b7c72004f3173a7d92457154a1fdb2180e1;p=jquery.git diff --git a/src/offset.js b/src/offset.js index 0ce4c19..c38a7f2 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 );