Inject can now take an ID. Also, fix unit tests.

This commit is contained in:
Neil Fraser
2015-04-29 20:26:04 -07:00
parent 9924498485
commit 3ff69d47fe
17 changed files with 57 additions and 58 deletions

View File

@@ -121,7 +121,7 @@
</xml>
<script>
var workspace = Blockly.inject(document.getElementById('blocklyDiv'),
var workspace = Blockly.inject('blocklyDiv',
{toolbox: document.getElementById('toolbox')});
Blockly.Xml.domToWorkspace(workspace,
document.getElementById('startBlocks'));