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

@@ -372,7 +372,7 @@ Code.init = function() {
window.addEventListener('resize', onresize, false);
var toolbox = document.getElementById('toolbox');
Code.workspace = Blockly.inject(document.getElementById('content_blocks'),
Code.workspace = Blockly.inject('content_blocks',
{grid:
{spacing: 25,
length: 3,