git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added "#main" ancestor selector to an "Only Child" and "Last Child" test to fix broke...
[jquery.git]
/
src
/
css.js
diff --git
a/src/css.js
b/src/css.js
index
42d038a
..
cb65c0b
100644
(file)
--- a/
src/css.js
+++ b/
src/css.js
@@
-21,7
+21,7
@@
var rexclude = /z-?index|font-?weight|opacity|zoom|line-?height/i,
};
jQuery.fn.css = function( name, value ) {
};
jQuery.fn.css = function( name, value ) {
- return access( this, name, value, true, function( elem, name, value ) {
+ return jQuery.access( this, name, value, true, function( elem, name, value ) {
if ( value === undefined ) {
return jQuery.curCSS( elem, name );
}
if ( value === undefined ) {
return jQuery.curCSS( elem, name );
}
@@
-49,7
+49,7
@@
jQuery.extend({
var style = elem.style || elem, set = value !== undefined;
// IE uses filters for opacity
var style = elem.style || elem, set = value !== undefined;
// IE uses filters for opacity
- if ( !jQuery.support.opacity && name === "opacity" ) {
+ if ( !jQuery.support.opacity && name === "opacity" && style.filter ) {
if ( set ) {
// IE has trouble with opacity if it does not have layout
// Force it by setting the zoom level
if ( set ) {
// IE has trouble with opacity if it does not have layout
// Force it by setting the zoom level
@@
-186,7
+186,7
@@
jQuery.extend({
callback.call( elem );
// Revert the old values
callback.call( elem );
// Revert the old values
- for ( var name in options ) {
+ for ( name in options ) {
elem.style[ name ] = old[ name ];
}
}
elem.style[ name ] = old[ name ];
}
}