mirror of
https://github.com/fastmail/Squire.git
synced 2025-01-03 13:16:31 -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,17 +3463,9 @@ proto.addStyles = function ( styles ) {
|
||||||
style = this.createElement( 'STYLE', {
|
style = this.createElement( 'STYLE', {
|
||||||
type: 'text/css'
|
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 ) );
|
style.appendChild( this._doc.createTextNode( styles ) );
|
||||||
head.appendChild( style );
|
head.appendChild( style );
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return this;
|
return this;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -2031,17 +2031,9 @@ proto.addStyles = function ( styles ) {
|
||||||
style = this.createElement( 'STYLE', {
|
style = this.createElement( 'STYLE', {
|
||||||
type: 'text/css'
|
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 ) );
|
style.appendChild( this._doc.createTextNode( styles ) );
|
||||||
head.appendChild( style );
|
head.appendChild( style );
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return this;
|
return this;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue