Skip to content

Conversation

golf-mike
Copy link
Contributor

When invoking the jsPDF.table() method a "TypeError: config.css is undefined" is thrown when there is no font-size property on the css property of the config object that is passed. In this case execution halts.
Added check for config.css and config.css['font-size']. Used a negative typeof check for "undefined" instead of a positive one for "number" to respect loose typing.

When invoking the jsPDF.table() method a "TypeError: config.css is undefined" is thrown when there is no font-size property on the css property of the config object that is passed. In this case execution halts.
Added check for config.css and config.css['font-size']. Used a negative typeof check for "undefined" instead of a positive one for "number" to respect loose typing.
@golf-mike golf-mike changed the title Update cell.js (#1) TypeError: config.css is undefined May 4, 2016
@MrRio MrRio merged commit e1d0b90 into parallax:master Sep 25, 2016
@MrRio
Copy link
Member

MrRio commented Sep 25, 2016

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants