Closed
Description
The cause is that the return type has not an effectful implementation.
Instead of ...
exports.hasAttribute = function(name) {
return function (element) {
return element.hasAttribute(name);
};
};
... the implementation should be ...
exports.hasAttribute = function(name) {
return function (element) {
return function () {
return element.hasAttribute(name);
};
};
};