Skip to content

Commit

Permalink
Merge pull request #532 from LuKing4DB/patch-1
Browse files Browse the repository at this point in the history
wrong spell role should be rule
  • Loading branch information
dcodeIO authored Dec 9, 2016
2 parents 6a6c00c + ef0fcb6 commit 22200ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/field.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ Field.testJSON = function testJSON(json) {
Field.fromJSON = function fromJSON(name, json) {
if (json.keyType !== undefined)
return MapField.fromJSON(name, json);
return new Field(name, json.id, json.type, json.role, json.extend, json.options);
return new Field(name, json.id, json.type, json.rule, json.extend, json.options);
};

/**
Expand Down

0 comments on commit 22200ae

Please sign in to comment.