aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2009-02-08 00:55:16 +0000
committerRichard Worth <rdworth@gmail.com>2009-02-08 00:55:16 +0000
commite4c5712974a98733e04a50e183e6ad077d959f2a (patch)
treee737201f7e5fd25da577e6d1c7b7bc62441e5157 /ui
parenta5af2cf430ebe303a695c9f4bbfdd5d0297de6cb (diff)
downloadjquery-ui-e4c5712974a98733e04a50e183e6ad077d959f2a.tar.gz
jquery-ui-e4c5712974a98733e04a50e183e6ad077d959f2a.zip
Removed unused code obsoleted by #3906 and r1754
Diffstat (limited to 'ui')
-rw-r--r--ui/ui.core.js18
1 files changed, 0 insertions, 18 deletions
diff --git a/ui/ui.core.js b/ui/ui.core.js
index ddeb7d5e2..318f871a6 100644
--- a/ui/ui.core.js
+++ b/ui/ui.core.js
@@ -43,24 +43,6 @@ $.ui = {
: a !== b && a.contains(b);
},
- cssCache: {},
- css: function(name) {
- if ($.ui.cssCache[name]) { return $.ui.cssCache[name]; }
- var tmp = $('<div class="ui-gen"></div>').addClass(name).css({position:'absolute', top:'-5000px', left:'-5000px', display:'block'}).appendTo('body');
-
- //if (!$.browser.safari)
- //tmp.appendTo('body');
-
- //Opera and Safari set width and height to 0px instead of auto
- //Safari returns rgba(0,0,0,0) when bgcolor is not set
- $.ui.cssCache[name] = !!(
- (!(/auto|default/).test(tmp.css('cursor')) || (/^[1-9]/).test(tmp.css('height')) || (/^[1-9]/).test(tmp.css('width')) ||
- !(/none/).test(tmp.css('backgroundImage')) || !(/transparent|rgba\(0, 0, 0, 0\)/).test(tmp.css('backgroundColor')))
- );
- try { $('body').get(0).removeChild(tmp.get(0)); } catch(e){}
- return $.ui.cssCache[name];
- },
-
hasScroll: function(el, a) {
//If overflow is hidden, the element might have extra content, but the user wants to hide it