diff --git a/lib/boleto.js b/lib/boleto.js index f5cb2c5..073a017 100644 --- a/lib/boleto.js +++ b/lib/boleto.js @@ -65,8 +65,8 @@ Boleto.prototype._calculate = function () { Boleto.prototype.renderHTML = function (callback) { var self = this - var renderOptions = self.bank.options; - renderOptions.boleto = self; + var renderOptions = self.bank.options + renderOptions.boleto = self // Copy renderHelper's methods to renderOptions for (var key in formatters) { @@ -87,8 +87,8 @@ Boleto.prototype.renderHTML = function (callback) { var html = ejs.renderFile(__dirname + '/../assets/layout.ejs', renderOptions, { cache: true }, function (err, html) { - callback(html); - }); + callback(html) + }) } module.exports = function (_banks) {