Skip to content

Commit

Permalink
wrong spell role should be rule
Browse files Browse the repository at this point in the history
wrong spell role should be rule
  • Loading branch information
LuKing4DB authored Dec 9, 2016
1 parent 6a6c00c commit ef0fcb6
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 ef0fcb6

Please sign in to comment.