Skip to content

Commit c29116e

Browse files
committed
Remove the BEFOREREADY event
1 parent 56678b8 commit c29116e

File tree

3 files changed

+0
-10
lines changed

3 files changed

+0
-10
lines changed

examples/basic.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,6 @@
3636
// 'url': 'wa1501.local'
3737
// });
3838

39-
board.on(webduino.BoardEvent.BEFOREREADY, function () {
40-
console.log('board beforeReady');
41-
});
42-
4339
board.on(webduino.BoardEvent.READY, function() {
4440
console.log('board ready');
4541
led = new webduino.module.Led(board, board.getDigitalPin(13));

examples/node/basic.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ board = new webduino.WebArduino('device_id');
3535
// 'url': 'wa1501.local'
3636
// });
3737

38-
board.on(webduino.BoardEvent.BEFOREREADY, function () {
39-
console.log('board beforeReady');
40-
});
41-
4238
board.on(webduino.BoardEvent.READY, function () {
4339
console.log('board ready');
4440
led = new webduino.module.Led(board, board.getDigitalPin(13));

src/core/Board.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
STRING_MESSAGE: 'stringMessage',
2525
SYSEX_MESSAGE: 'sysexMessage',
2626
PIN_STATE_RESPONSE: 'pinStateResponse',
27-
BEFOREREADY: 'beforeReady',
2827
READY: 'ready',
2928
ERROR: 'error',
3029
BEFOREDISCONNECT: 'beforeDisconnect',
@@ -351,7 +350,6 @@
351350
break;
352351
case ANALOG_MAPPING_RESPONSE:
353352
this.processAnalogMappingResponse(sysexData);
354-
this.emit(BoardEvent.BEFOREREADY);
355353
break;
356354
default:
357355
this.emit(BoardEvent.SYSEX_MESSAGE, {

0 commit comments

Comments
 (0)