loadCustomBlocks() {
        //Most block definitions move to customBlocks, direct export
        //from block editor.  Any local definitions should load afterwards
        //and will override the editor produced blocks.
        require('./../blocks/customBlocks');

        require('./../blocks/StartEventBlock');
        require('./../blocks/RunEventBlock');

        require('./../blocks/FriendInput').init(() => {
            return this.friendOptions();
        }, (e) => {
            return this.validateFriendOptions(e);
        })

        require('./../blocks/SayBlock');
        require('./../blocks/BeepBlock');

        //Sensors
        require('./../blocks/BatteryVoltageBlock');
        require('./../blocks/TouchSensorBlock');
        require('./../blocks/InfraredSensorBlock');
        require('./../blocks/ColorSensorBlock');
        require('./../blocks/ColorSensorValueBlock');
        require('./../blocks/UltrasonicSensorBlock');


        require('./../blocks/TimeInMillisBlock');

        require('./../blocks/LogBlock');
        require("./../blocks/WaitBlock");
        require('./../blocks/EveryBlock');

        require('./../blocks/LEDBlock');
        require('./../blocks/RunMotorForTime');
        require('./../blocks/RunMotorSpeed');
        require('./../blocks/DriveSetupBlock');
        require('./../blocks/MotorOutputBlock');
        require('./../blocks/DriveControlBlock');
        require('./../blocks/DriveControTimeBlock');
        require('./../blocks/StopMotorBlock');
        require('./../blocks/StopAllMotorBlock');
    }
/**
     * Don't try and require these blocks up top before blockly is properly initialized.
     */
Don't try and require these blocks up top before blockly is properly initialized.
Don ' t try and require these blocks up top before blockly is properly initialized .
loadCustomBlocks() {
        require('./../blocks/customBlocks');
        require('./../blocks/StartEventBlock');
        require('./../blocks/RunEventBlock');
        require('./../blocks/FriendInput').init(() => {
            return this.friendOptions();
        }, (e) => {
            return this.validateFriendOptions(e);
        })
        require('./../blocks/SayBlock');
        require('./../blocks/BeepBlock');
        require('./../blocks/BatteryVoltageBlock');
        require('./../blocks/TouchSensorBlock');
        require('./../blocks/InfraredSensorBlock');
        require('./../blocks/ColorSensorBlock');
        require('./../blocks/ColorSensorValueBlock');
        require('./../blocks/UltrasonicSensorBlock');
        require('./../blocks/TimeInMillisBlock');
        require('./../blocks/LogBlock');
        require("./../blocks/WaitBlock");
        require('./../blocks/EveryBlock');
        require('./../blocks/LEDBlock');
        require('./../blocks/RunMotorForTime');
        require('./../blocks/RunMotorSpeed');
        require('./../blocks/DriveSetupBlock');
        require('./../blocks/MotorOutputBlock');
        require('./../blocks/DriveControlBlock');
        require('./../blocks/DriveControTimeBlock');
        require('./../blocks/StopMotorBlock');
        require('./../blocks/StopAllMotorBlock');
    }
loadCustomBlocks ( ) { require ( './../blocks/customBlocks' ) ; require ( './../blocks/StartEventBlock' ) ; require ( './../blocks/RunEventBlock' ) ; require ( './../blocks/FriendInput' ) . init ( ( ) => { return this . friendOptions ( ) ; } , ( e ) => { return this . validateFriendOptions ( e ) ; } ) require ( './../blocks/SayBlock' ) ; require ( './../blocks/BeepBlock' ) ; require ( './../blocks/BatteryVoltageBlock' ) ; require ( './../blocks/TouchSensorBlock' ) ; require ( './../blocks/InfraredSensorBlock' ) ; require ( './../blocks/ColorSensorBlock' ) ; require ( './../blocks/ColorSensorValueBlock' ) ; require ( './../blocks/UltrasonicSensorBlock' ) ; require ( './../blocks/TimeInMillisBlock' ) ; require ( './../blocks/LogBlock' ) ; require ( "./../blocks/WaitBlock" ) ; require ( './../blocks/EveryBlock' ) ; require ( './../blocks/LEDBlock' ) ; require ( './../blocks/RunMotorForTime' ) ; require ( './../blocks/RunMotorSpeed' ) ; require ( './../blocks/DriveSetupBlock' ) ; require ( './../blocks/MotorOutputBlock' ) ; require ( './../blocks/DriveControlBlock' ) ; require ( './../blocks/DriveControTimeBlock' ) ; require ( './../blocks/StopMotorBlock' ) ; require ( './../blocks/StopAllMotorBlock' ) ; }
Don't try and require these blocks up top before blockly is properly initialized.
Don ' t try and require these blocks up top before blockly is properly initialized .
//Most block definitions move to customBlocks, direct export //from block editor.  Any local definitions should load afterwards //and will override the editor produced blocks. //Sensors