Merge pull request #390 from paulkaplan/feature/variable-creation

Explicitly create variables in the VM
This commit is contained in:
Paul Kaplan authored and GitHub committed 2017-05-30 09:35:43 -04:00
commit f78ed66b83
1 file changed
+1 -1
+1 -1
View File
@@ -148,7 +148,6 @@ class Blocks extends React.Component {
if (this.props.vm.editingTarget && !this.state.workspaceMetrics[this.props.vm.editingTarget.id]) {
this.onWorkspaceMetricsChange();
}
this.ScratchBlocks.Events.disable();
this.workspace.clear();
@@ -173,6 +172,7 @@ class Blocks extends React.Component {
}
handlePromptCallback (data) {
this.state.prompt.callback(data);
this.props.vm.createVariable(data);
this.handlePromptClose();
}
handlePromptClose () {