Ticket #2802: ticket2802_safari_curCSS.diff
| File ticket2802_safari_curCSS.diff, 0.7 kB (added by ebartels, 8 months ago) |
|---|
-
src/core.js
a b 830 830 return false; 831 831 832 832 // getComputedStyle is cached 833 var ret = getComputedStyle( elem, null );833 var ret = document.defaultView.getComputedStyle( elem, null ); 834 834 return !ret || ret.getPropertyValue("color") == ""; 835 835 } 836 836 … … 864 864 865 865 name = name.replace( /([A-Z])/g, "-$1" ).toLowerCase(); 866 866 867 var computedStyle = getComputedStyle( elem, null );867 var computedStyle = document.defaultView.getComputedStyle( elem, null ); 868 868 869 869 if ( computedStyle && !color( elem ) ) 870 870 ret = computedStyle.getPropertyValue( name );
