git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Standardize on using .nodeName in place of .tagName. Fixes jQuery bug #4923.
[jquery.git]
/
src
/
css.js
diff --git
a/src/css.js
b/src/css.js
index
94a021b
..
2395bdf
100644
(file)
--- a/
src/css.js
+++ b/
src/css.js
@@
-75,7
+75,7
@@
jQuery.extend({
}
return style.filter && style.filter.indexOf("opacity=") >= 0 ?
}
return style.filter && style.filter.indexOf("opacity=") >= 0 ?
- (parseFloat( style.filter.match(/opacity=([^)]*)/)[1] ) / 100) + '':
+ (parseFloat( /opacity=([^)]*)/.exec(style.filter)[1] ) / 100) + '':
"";
}
"";
}
@@
-129,7
+129,7
@@
jQuery.extend({
// IE uses filters for opacity
if ( !jQuery.support.opacity && name === "opacity" && elem.currentStyle ) {
// IE uses filters for opacity
if ( !jQuery.support.opacity && name === "opacity" && elem.currentStyle ) {
- ret = (elem.currentStyle.filter || "").match(/opacity=([^)]*)/) ?
+ ret = /opacity=([^)]*)/.test(elem.currentStyle.filter || "") ?
(parseFloat(RegExp.$1) / 100) + "" :
"";
(parseFloat(RegExp.$1) / 100) + "" :
"";
@@
-207,4
+207,4
@@
jQuery.extend({
for ( var name in options )
elem.style[ name ] = old[ name ];
}
for ( var name in options )
elem.style[ name ] = old[ name ];
}
-});
\ No newline at end of file
+});