Fix for Firefox 3 error: "TypeError: sheet.styleSheet is undefined" #54

Merged
merged 1 commit into from Aug 10, 2011

Projects

None yet

2 participants

@chimurai

Fix for Firefox 3 error: "TypeError: sheet.styleSheet is undefined"

Extra object detection to prevent error in an if-statement:

OLD
if (sheet.styleSheet.rawCssText)

NEW
if (sheet.styleSheet && sheet.styleSheet.rawCssText)

@scottjehl
Owner

Looks good, thanks!

@scottjehl scottjehl merged commit 056d89e into scottjehl:master Aug 10, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment