X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;ds=sidebyside;f=src%2Foffset.js;h=5d283aacfac0d65ea0d1b9447a8921cc6dd04200;hb=2bda99c18a0372eed02472e9d318676e180281da;hp=bab253ba2903fa60651da94474ebfead63ce24a4;hpb=920099b29c1157b637f918cdc293e1c89e9cd4dc;p=jquery.git diff --git a/src/offset.js b/src/offset.js index bab253b..5d283aa 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 );