Skip to content

Commit

Permalink
fix: fix the undefined toString method call while testing for attribu…
Browse files Browse the repository at this point in the history
…te nodes
  • Loading branch information
teclone committed Jul 8, 2018
1 parent a328f4e commit c743a0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/Util.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default {
*@returns {boolean}
*/
isAttributeNode(node) {
return node && (node.nodeType === 2 || toString.call(node) === '[object Attr]');
return node && (node.nodeType === 2 || Object.prototype.toString.call(node) === '[object Attr]');
},

/**
Expand Down Expand Up @@ -73,5 +73,5 @@ export default {
*/
isDOMFragmentNode(node) {
return node && node.nodeType === 11;
}
},
};

0 comments on commit c743a0d

Please sign in to comment.