aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichał Gołębiowski <m.goleb@gmail.com>2014-03-10 00:59:14 +0100
committerMichał Gołębiowski <m.goleb@gmail.com>2014-03-10 19:14:44 +0100
commit2c180ef938201f1213b5c43c8212856d0282e1f0 (patch)
treee496942a345b13787031650ad6a68240cdb07f9e /src
parentb19d4d3450c385b7074035b17f3ba8d0b86cf0b0 (diff)
downloadjquery-2c180ef938201f1213b5c43c8212856d0282e1f0.tar.gz
jquery-2c180ef938201f1213b5c43c8212856d0282e1f0.zip
Css: Revert 24e587929f62428e1959b10aace6dc4fd65ab397
The workaround to be able to change !important styles broke the browser keeping the old CSS value if the new one was rejected. Patching it would involve a significant perf hit (~33%) so the initial patch needs to be reverted instead. Tests by m_gol & gibson042. Fixes #14836 Closes gh-1532
Diffstat (limited to 'src')
-rw-r--r--src/css.js3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/css.js b/src/css.js
index 4d6838a4e..5e22dae00 100644
--- a/src/css.js
+++ b/src/css.js
@@ -286,9 +286,6 @@ 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;
}