Skip to content

Commit

Permalink
nokia E52 fails on undefined style from line 265. Definition of cssTe…
Browse files Browse the repository at this point in the history
…xt (269) made more robust.
  • Loading branch information
donnut committed Nov 11, 2011
1 parent 3f3bbf1 commit dcfbdda
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.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 dcfbdda

Please sign in to comment.