0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2024-12-22 07:13:08 -05:00

Remove some old IE8-specific code.

This commit is contained in:
Neil Jenkins 2015-06-11 15:53:12 +07:00
parent 8abceb586c
commit f6cddb4626
3 changed files with 5 additions and 21 deletions

View file

@ -3463,16 +3463,8 @@ proto.addStyles = function ( styles ) {
style = this.createElement( 'STYLE', {
type: 'text/css'
});
if ( style.styleSheet ) {
// IE8: must append to document BEFORE adding styles
// or you get the IE7 CSS parser!
head.appendChild( style );
style.styleSheet.cssText = styles;
} else {
// Everyone else
style.appendChild( this._doc.createTextNode( styles ) );
head.appendChild( style );
}
style.appendChild( this._doc.createTextNode( styles ) );
head.appendChild( style );
}
return this;
};

File diff suppressed because one or more lines are too long

View file

@ -2031,16 +2031,8 @@ proto.addStyles = function ( styles ) {
style = this.createElement( 'STYLE', {
type: 'text/css'
});
if ( style.styleSheet ) {
// IE8: must append to document BEFORE adding styles
// or you get the IE7 CSS parser!
head.appendChild( style );
style.styleSheet.cssText = styles;
} else {
// Everyone else
style.appendChild( this._doc.createTextNode( styles ) );
head.appendChild( style );
}
style.appendChild( this._doc.createTextNode( styles ) );
head.appendChild( style );
}
return this;
};