Skip to content

Commit 0e9f126

Browse files
authored
Merge pull request #33 from rnons/fix-has-attribute
Forgot to return in hasAttribute
2 parents efa28b9 + 3154c5a commit 0e9f126

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Halogen/VDom/Util.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,9 @@ exports.removeAttribute = function (ns, attr, el) {
151151

152152
exports.hasAttribute = function (ns, attr, el) {
153153
if (ns != null) {
154-
el.hasAttributeNS(ns, attr);
154+
return el.hasAttributeNS(ns, attr);
155155
} else {
156-
el.hasAttribute(attr);
156+
return el.hasAttribute(attr);
157157
}
158158
};
159159

0 commit comments

Comments
 (0)