From f5b9b1c8632de9f2066bc45ded336d1e04e64aab Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Thu, 6 Mar 2014 11:06:43 +0000 Subject: Use bluebird instead of q for better performance --- lib/document-to-html.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/document-to-html.js') 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); -- cgit v1.2.3