Side navigation
#6523 closed enhancement (fixed)
Opened May 04, 2010 02:06PM UTC
Closed September 22, 2010 05:02PM UTC
change order of conditions checking in curCSS to avoid unnecessary lookouts
Reported by: | kowcik | Owned by: | |
---|---|---|---|
Priority: | Milestone: | 1.4.3 | |
Component: | attributes | Version: | 1.4.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
cur CSS in version 1.4.2
curCSS: function( elem, name, force ) {
var ret, style = elem.style, filter;
IE uses filters for opacity
if ( !jQuery.support.opacity && name === "opacity" && elem.currentStyle ) {
...
it seems every time this function is called, there is a check made on jQuery.support.opacity. Proposed enhacement:
curCSS: function( elem, name, force ) {
var ret, style = elem.style, filter;
IE uses filters for opacity
if ( name === "opacity" && !jQuery.support.opacity && elem.currentStyle ) {
...