Ref #8908. Update IE9 css clone fix. Close gh-1120.

This commit is contained in:
Oleg
2013-01-08 01:49:36 +00:00
committed by Dave Methvin
parent c27d8e2988
commit ce67f0ce64
4 changed files with 30 additions and 14 deletions

View File

@@ -213,8 +213,8 @@ jQuery.extend({
// Fixes #8908, it can be done more correctly by specifing setters in cssHooks,
// but it would mean to define eight (for every problematic property) identical functions
if ( value === "" && name.indexOf("background") === 0 ) {
value = " ";
if ( !jQuery.support.clearCloneStyle && value === "" && name.indexOf("background") === 0 ) {
style[ name ] = "inherit";
}
// If a hook was provided, use that value, otherwise just set the specified value