From 4a6d1631eaae2c5b89dfe58728b46a8997daba48 Mon Sep 17 00:00:00 2001 From: Michał Gołębiowski Date: Mon, 10 Mar 2014 00:59:14 +0100 Subject: 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. (cherry-picked from 10e654218a65ec9a0ffc875137cea945389c69f1) Fixes #14836 Closes gh-1532 --- src/css.js | 3 --- 1 file changed, 3 deletions(-) (limited to 'src') diff --git a/src/css.js b/src/css.js index 4b1f91440..afebceb12 100644 --- a/src/css.js +++ b/src/css.js @@ -295,9 +295,6 @@ jQuery.extend({ // Support: IE // Swallow errors from 'invalid' CSS values (#5509) try { - // Support: Chrome, Safari - // Setting style to blank string required to delete "style: x !important;" - style[ name ] = ""; style[ name ] = value; } catch(e) {} } -- cgit v1.2.3