diff options
author | John Resig <jeresig@gmail.com> | 2009-01-04 15:29:27 +0000 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2009-01-04 15:29:27 +0000 |
commit | 434b87b8a233eb24ec773de801f3adb460fbd0f4 (patch) | |
tree | 5abe141c6b257f669015f04f9551d184f546b090 /src/offset.js | |
parent | c0294278db40da764a98ea1c1506548e539213c7 (diff) | |
download | jquery-434b87b8a233eb24ec773de801f3adb460fbd0f4.tar.gz jquery-434b87b8a233eb24ec773de801f3adb460fbd0f4.zip |
Moved from the old JSMin to using YUIMin for compressing the jQuery source. Additionally landed some improvements from #3770 which dramatically reduce the filesize. The final minifed + gzipped size of jQuery went from 19817 bytes to 18063 bytes.
Diffstat (limited to 'src/offset.js')
-rw-r--r-- | src/offset.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/offset.js b/src/offset.js index c7f26d1c8..cc1b87440 100644 --- a/src/offset.js +++ b/src/offset.js @@ -50,7 +50,7 @@ else jQuery.offset = { initialize: function() { if ( this.initialized ) return; - var body = document.body, container = document.createElement('div'), innerDiv, checkDiv, table, rules, prop, bodyMarginTop = body.style.marginTop, + var body = document.body, container = document.createElement('div'), innerDiv, checkDiv, table, td, rules, prop, bodyMarginTop = body.style.marginTop, html = '<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"cellpadding="0"cellspacing="0"><tr><td></td></tr></table>'; rules = { position: 'absolute', top: 0, left: 0, margin: 0, border: 0, width: '1px', height: '1px', visibility: 'hidden' }; |