mirror of
https://github.com/google/blockly.git
synced 2026-01-04 15:40:08 +01:00
Dispose of toolbox when workspace is disposed.
This commit is contained in:
@@ -81,7 +81,8 @@
|
||||
<script>
|
||||
var workspace = Blockly.inject('blocklyDiv',
|
||||
{media: '../../media/',
|
||||
maxBlocks: 5, toolbox: document.getElementById('toolbox')});
|
||||
maxBlocks: 5,
|
||||
toolbox: document.getElementById('toolbox')});
|
||||
|
||||
function onchange() {
|
||||
document.getElementById('capacity').innerHTML = workspace.remainingCapacity();
|
||||
|
||||
Reference in New Issue
Block a user