diff options
author | Lihan Li <frankieteardrop@gmail.com> | 2013-09-29 12:06:32 -0400 |
---|---|---|
committer | Richard Gibson <richard.gibson@gmail.com> | 2013-10-15 16:34:54 -0400 |
commit | 24e587929f62428e1959b10aace6dc4fd65ab397 (patch) | |
tree | 7906036c46feaf186596347fdbf575579ec2e6af /src/css.js | |
parent | 6095be1260c5c0e7dfe88380501188d4c50975eb (diff) | |
download | jquery-24e587929f62428e1959b10aace6dc4fd65ab397.tar.gz jquery-24e587929f62428e1959b10aace6dc4fd65ab397.zip |
Fix #14394: Changing style !important in webkit. Close gh-1385.
Diffstat (limited to 'src/css.js')
-rw-r--r-- | src/css.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/css.js b/src/css.js index 79127ec0e..30342a230 100644 --- a/src/css.js +++ b/src/css.js @@ -286,6 +286,9 @@ jQuery.extend({ // If a hook was provided, use that value, otherwise just set the specified value if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value, extra )) !== undefined ) { + // Support: Chrome, Safari + // Setting style to blank string required to delete "style: x !important;" + style[ name ] = ""; style[ name ] = value; } |