r2045 - trunk/ui
r2045 - trunk/ui
Author: rdworth
Date: Sat Feb 7 16:55:16 2009
New Revision: 2045
Modified:
trunk/ui/ui.core.js
Log:
Removed unused code obsoleted by #3906 and r1754
Modified: trunk/ui/ui.core.js
==============================================================================
--- trunk/ui/ui.core.js (original)
+++ trunk/ui/ui.core.js Sat Feb 7 16:55:16 2009
@@ -43,24 +43,6 @@
: 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