diff options
Diffstat (limited to 'lib/images.js')
| -rw-r--r-- | lib/images.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/images.js b/lib/images.js index 6aac18a..fdc3601 100644 --- a/lib/images.js +++ b/lib/images.js @@ -4,16 +4,14 @@ var promises = require("./promises"); var Html = require("./html"); exports.imgElement = function(func) { - return function(element, messages, callback) { + return function(element, messages) { return promises.when(func(element)).then(function(result) { var attributes = _.clone(result); if (element.altText) { attributes.alt = element.altText; } return [Html.selfClosingElement("img", attributes)]; - }).then(function(value) { - callback(null, value); - }, callback); + }); }; }; |
