diff options
| author | Michael Williamson <mike@zwobble.org> | 2014-03-06 11:06:43 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2014-03-06 11:06:43 +0000 |
| commit | f5b9b1c8632de9f2066bc45ded336d1e04e64aab (patch) | |
| tree | c2351d3052b1bb3fc0f0d470be1786100303113e /lib/document-to-html.js | |
| parent | 85e30f452001b5d02a617da21c72e12b206dfdb4 (diff) | |
Use bluebird instead of q for better performance
Diffstat (limited to 'lib/document-to-html.js')
| -rw-r--r-- | lib/document-to-html.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/document-to-html.js b/lib/document-to-html.js index 8033d8b..6eef821 100644 --- a/lib/document-to-html.js +++ b/lib/document-to-html.js @@ -1,4 +1,4 @@ -var q = require("q"); +var promises = require("./promises"); var async = require("async"); var htmlPaths = require("./html-paths"); @@ -18,7 +18,7 @@ function DocumentConverter(options) { var messages = []; var html = new HtmlGenerator(); - return q.nfcall(elementToHtml, document, html, messages).then(function() { + return promises.nfcall(elementToHtml, document, html, messages).then(function() { html.closeAll(); return new results.Result(html.asString(), messages); |
