minor cleanup
This commit is contained in:
parent
d4625529a8
commit
6c045640d2
@ -3,16 +3,12 @@
|
|||||||
|
|
||||||
namespace ks.rt.micro_bit {
|
namespace ks.rt.micro_bit {
|
||||||
export function initCurrentRuntime() {
|
export function initCurrentRuntime() {
|
||||||
initBoard();
|
|
||||||
}
|
|
||||||
|
|
||||||
ks.rt.initCurrentRuntime = initCurrentRuntime;
|
|
||||||
|
|
||||||
function initBoard() {
|
|
||||||
U.assert(!runtime.board)
|
U.assert(!runtime.board)
|
||||||
runtime.board = new Board()
|
runtime.board = new Board()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ks.rt.initCurrentRuntime = initCurrentRuntime;
|
||||||
|
|
||||||
export function board() {
|
export function board() {
|
||||||
return runtime.board as Board
|
return runtime.board as Board
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user