Skip to content

Commit

Permalink
Merge pull request LinkedInAttic#256 from kate2753/master
Browse files Browse the repository at this point in the history
Fix css plugin for IE7
  • Loading branch information
jakobo committed May 1, 2013
2 parents f303469 + a86d3e6 commit 1c0a1d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/css.js
Expand Up @@ -23,9 +23,9 @@ governing permissions and limitations under the License.
**/
(function () {
var style = document.createElement('style');
style.type = 'text/css';
var placed = false;
var useCssText = (style.styleSheet) ? true : false;
style.type = 'text/css';

function CSS(txt) {
this.txt = txt;
Expand Down Expand Up @@ -58,7 +58,7 @@ governing permissions and limitations under the License.
},
addStyles: function (text) {
if (useCssText) {
style.styleSheet.cssText = [style.styleSheet.cssText, text].join('\n');
style.styleSheet.cssText = [style.innerHTML, text].join('\n');
}
else {
style.appendChild(document.createTextNode(text));
Expand Down

0 comments on commit 1c0a1d4

Please sign in to comment.