diff options
| author | Michael Williamson <mike@zwobble.org> | 2014-02-07 13:22:01 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2014-02-07 13:22:01 +0000 |
| commit | 68fe7dab8c5f40af8941ca103903044dda319146 (patch) | |
| tree | bf1796cf94d78fd103d523d0d901992b010f93b6 /lib | |
| parent | 47efcec3be6f5bf84987c73e16fdeee991fd6bba (diff) | |
Use setImmediate instead of process.nextTick
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/document-to-html.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/document-to-html.js b/lib/document-to-html.js index bce92c8..8033d8b 100644 --- a/lib/document-to-html.js +++ b/lib/document-to-html.js @@ -42,7 +42,7 @@ function DocumentConverter(options) { function convertParagraph(element, html, messages, callback) { html.satisfyPath(styleForParagraph(element, messages)); - process.nextTick(function() { + setImmediate(function() { convertElements(element.children, html, messages, callback); }); } |
