Skip to content

Commit

Permalink
Updated WidgetDefinitionLoader code style
Browse files Browse the repository at this point in the history
  • Loading branch information
qooban committed Nov 15, 2018
1 parent 3f02c30 commit 9598d28
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/utils/widgetDefinitionsLoader.js
Expand Up @@ -25,16 +25,16 @@ let widgetDefinitions = [];
export default class WidgetDefinitionsLoader {
static init() {
window.Stage = {
defineWidget: (widgetDefinition)=> {
defineWidget: (widgetDefinition) => {
widgetDefinitions.push(new WidgetDefinition({...widgetDefinition, id: document.currentScript.id}));
},
Basic: BasicComponents,
ComponentToHtmlString: (component)=>{
ComponentToHtmlString: (component) => {
return ReactDOMServer.renderToString(component);
},
GenericConfig,
Common: [],
defineCommon: (def) =>{
defineCommon: (def) => {
Stage.Common[def.name] = def.common;
},
Utils: StageUtils
Expand Down

0 comments on commit 9598d28

Please sign in to comment.