mirror of
https://github.com/fastmail/Squire.git
synced 2024-12-22 15:23:29 -05:00
Remove some old IE8-specific code.
This commit is contained in:
parent
8abceb586c
commit
f6cddb4626
3 changed files with 5 additions and 21 deletions
|
@ -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
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue