diff --git a/dist/react-json-schema.js b/dist/react-json-schema.js index d21a2a9..4886672 100644 --- a/dist/react-json-schema.js +++ b/dist/react-json-schema.js @@ -82,13 +82,13 @@ var ReactJsonSchema = function () { }, { key: 'resolveComponent', value: function resolveComponent(schema) { - var _componentMap = this.getComponentMap(); + var componentMap = this.getComponentMap(); var Component = null; if (schema.hasOwnProperty('component')) { if (schema.component === Object(schema.component)) { Component = schema.component; - } else if (_componentMap && _componentMap[schema.component]) { - Component = _componentMap[schema.component]; + } else if (componentMap && componentMap[schema.component]) { + Component = componentMap[schema.component]; } else if (_react.DOM.hasOwnProperty(schema.component)) { Component = schema.component; } diff --git a/package.json b/package.json index 6ceded9..b6d2eb6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-json-schema", - "version": "1.0.0", + "version": "1.0.1", "description": "Write component schema in JSON; parse to create react elements.", "keywords": [ "react", diff --git a/react-json-schema.iml b/react-json-schema.iml new file mode 100644 index 0000000..c3e779f --- /dev/null +++ b/react-json-schema.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file