Skip to content
Snippets Groups Projects
Commit 5f7b8f5f authored by Ray Schamp's avatar Ray Schamp
Browse files

Hook up skeleton VM to blocks

parent 5169f97d
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,9 @@ export default class Blocks extends React.Component {
component,
defaultsDeep({}, this.props.options, Blocks.defaultOptions)
);
if (this.props.vm) {
this.workspace.addChangeListener(this.props.vm.blockListener);
}
}
render () {
return (
......
......@@ -12,12 +12,17 @@ export default class GUI extends React.Component {
options={{
toolbox: this.toolbox
}}
vm={this.props.vm}
/>
</div>
);
}
}
GUI.propTypes = {
vm: React.PropTypes.object
};
GUI.defaultProps = {
vm: new VM()
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment