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

Commit

Permalink
feat(attributes.js): rename fromObject to of
Browse files Browse the repository at this point in the history
BREAKING CHANGE:
Method fromObject no longer exists. Use Attributes.of instead.
  • Loading branch information
stfsy committed Mar 27, 2017
1 parent d0a2cac commit 6763c53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Attributes {
* @param {Object} [elems=null] elems an object
* @returns {Array<Attribute>} a new array of attributes
*/
static fromObject(elems) {
static of(elems) {

let array = []

Expand Down

0 comments on commit 6763c53

Please sign in to comment.