Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Pass the callback as a function, rather than invoke it #424

Closed
wants to merge 1 commit into from

Conversation

danielsiwiec
Copy link

Closes #423

@gitbrent gitbrent self-assigned this Oct 24, 2018
@gitbrent gitbrent added this to the 2.4.0 milestone Oct 24, 2018
gitbrent added a commit that referenced this pull request Oct 24, 2018
@gitbrent
Copy link
Owner

Thanks @danielsiwiec !

Note: Fixes issue with 2.3.0:

Ex:

pptx.save( exportName, (filename) => { console.log('inline callback!'); } );

Output:

(node:16957) [DEP0013] DeprecationWarning: Calling an asynchronous function without callback is deprecated.

@gitbrent gitbrent closed this Oct 24, 2018
gitbrent added a commit that referenced this pull request Oct 24, 2018
@danielsiwiec danielsiwiec deleted the patch-2 branch October 24, 2018 06:44
ericrockey pushed a commit to WeTransfer/PptxGenJS that referenced this pull request Mar 24, 2020
ericrockey pushed a commit to WeTransfer/PptxGenJS that referenced this pull request Mar 24, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants