From ef0fcb6d525c5aab13a39b4f393adf03f751c8c9 Mon Sep 17 00:00:00 2001 From: brick Date: Fri, 9 Dec 2016 22:22:10 +0800 Subject: [PATCH] wrong spell role should be rule wrong spell role should be rule --- src/field.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/field.js b/src/field.js index c53fa10fb..b767d228e 100644 --- a/src/field.js +++ b/src/field.js @@ -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); }; /**