Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

Commit

Permalink
feat(node.js): convert attributes to property via get
Browse files Browse the repository at this point in the history
BREAKING CHANGE:
Method attributes does no longer exist. Use property attributes instead.
  • Loading branch information
stfsy committed Mar 27, 2017
1 parent da175fb commit d960e47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ class Node {
* Returns all attributes of this node
* @returns {Array.<Attribute>}
*/
attributes() {
get attributes() {
const attributes = this.get().attribs
const array = []

Expand Down

0 comments on commit d960e47

Please sign in to comment.