git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make sure that jQuery works even when the individual modules are loaded separately...
[jquery.git]
/
src
/
offset.js
diff --git
a/src/offset.js
b/src/offset.js
index
bab253b
..
5d283aa
100644
(file)
--- 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 );