Skip to content

Commit 1659f88

Browse files
authored
Merge pull request #24 from srghma/patch-2
fix #22: hasAttribute in Web.DOM.Element fails -> return type has to be effectful
2 parents 5bbf40a + afd0217 commit 1659f88

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Web/DOM/Element.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ exports._getAttribute = function (name) {
9494

9595
exports.hasAttribute = function(name) {
9696
return function (element) {
97-
return element.hasAttribute(name);
97+
return function () {
98+
return element.hasAttribute(name);
99+
};
98100
};
99101
};
100102

0 commit comments

Comments
 (0)