diff options
author | Eduardo Lundgren <eduardolundgren@gmail.com> | 2008-11-28 15:43:32 +0000 |
---|---|---|
committer | Eduardo Lundgren <eduardolundgren@gmail.com> | 2008-11-28 15:43:32 +0000 |
commit | 95c6c6dd62684c388590087b97001bd67ce46a07 (patch) | |
tree | b21f02b8f9e57fd35072f345edf4b96644db7d05 /ui/ui.core.js | |
parent | 91232f6ed53abdc2e2d36929a5129f9a7d8069b9 (diff) | |
download | jquery-ui-95c6c6dd62684c388590087b97001bd67ce46a07.tar.gz jquery-ui-95c6c6dd62684c388590087b97001bd67ce46a07.zip |
Source formatting
Diffstat (limited to 'ui/ui.core.js')
-rw-r--r-- | ui/ui.core.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/ui.core.js b/ui/ui.core.js index 2d4472f5c..c277ed9b2 100644 --- a/ui/ui.core.js +++ b/ui/ui.core.js @@ -187,7 +187,7 @@ $.fn.extend({ }, scrollParent: function() { - + var scrollParent; if(($.browser.msie && (/(static|relative)/).test(this.css('position'))) || (/absolute/).test(this.css('position'))) { scrollParent = this.parents().filter(function() { @@ -198,9 +198,9 @@ $.fn.extend({ return (/(auto|scroll)/).test($.curCSS(this,'overflow',1)+$.curCSS(this,'overflow-y',1)+$.curCSS(this,'overflow-x',1)); }).eq(0); } - + return (/fixed/).test(this.css('position')) || !scrollParent.length ? $(document) : scrollParent; - + } @@ -464,7 +464,7 @@ $.ui.mouse = { // preventDefault() is used to prevent the selection of text here - // however, in Safari, this causes select boxes not to be selectable - // anymore, so this fix is needed + // anymore, so this fix is needed if(!$.browser.safari) event.preventDefault(); return true; }, |