Commit e7e38810 authored by Neil Fraser's avatar Neil Fraser

Merge pull request #213 from tarling/doCommand

Fix to Blockly.doCommand to call Blockly.Realtime.isEnabled
parents d717546c ce8bbd66
...@@ -614,7 +614,7 @@ Blockly.setMainWorkspaceMetrics_ = function(xyRatio) { ...@@ -614,7 +614,7 @@ Blockly.setMainWorkspaceMetrics_ = function(xyRatio) {
* @param {function()} cmdThunk A function representing the command execution. * @param {function()} cmdThunk A function representing the command execution.
*/ */
Blockly.doCommand = function(cmdThunk) { Blockly.doCommand = function(cmdThunk) {
if (Blockly.Realtime.isEnabled) { if (Blockly.Realtime.isEnabled()) {
Blockly.Realtime.doCommand(cmdThunk); Blockly.Realtime.doCommand(cmdThunk);
} else { } else {
cmdThunk(); cmdThunk();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment