Skip to content

Commit

Permalink
put back return of empty string if style.cssText is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
donnut committed Nov 11, 2011
1 parent dcfbdda commit c8a6df3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modernizr.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ window.Modernizr = (function( window, document, undefined ) {
// IE8 will bork if you create a custom build that excludes both fontface and generatedcontent tests.
// So we check for cssRules and that there is a rule available
// More here: github.com/Modernizr/Modernizr/issues/288 & github.com/Modernizr/Modernizr/issues/293
cssText = style ? (style.cssRules && style.cssRules[0] ? style.cssRules[0].cssText : style.cssText) : "",
cssText = style ? (style.cssRules && style.cssRules[0] ? style.cssRules[0].cssText : style.cssText || "") : "",
children = node.childNodes, hash = {};

while ( len-- ) {
Expand Down

0 comments on commit c8a6df3

Please sign in to comment.