makenai / robotnik

Drag and drop robotics educational library starring Johnny Five and Blockly (crowd goes wild)
52 stars 13 forks source link

Don't show 'Running' window until Board.onReady #6

Open makenai opened 9 years ago

makenai commented 9 years ago

Right now we just show 'Running' when they hit run. The process could actually have failed horribly in the background. Let's get better communication going.

makenai commented 9 years ago

Double checked. This is a hack:

$('#execute').on('click', function(e) { e.preventDefault(); setTimeout(function() { RunningWindow.show();
}, 1000); if ( $('#code-tab').parent().is('.active') ) { sendMessage( 'code', editor.getValue() ); } else { sendMessage( 'code', generateCode() ); } });

ajfisher commented 8 years ago

This is now complete and merged in as part of #38