aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2014-02-07 13:22:01 +0000
committerMichael Williamson <mike@zwobble.org>2014-02-07 13:22:01 +0000
commit68fe7dab8c5f40af8941ca103903044dda319146 (patch)
treebf1796cf94d78fd103d523d0d901992b010f93b6
parent47efcec3be6f5bf84987c73e16fdeee991fd6bba (diff)
Use setImmediate instead of process.nextTick
-rw-r--r--lib/document-to-html.js2
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);
});
}