minor cleanup

This commit is contained in:
Peli de Halleux 2016-03-10 22:09:04 -08:00
parent d4625529a8
commit 6c045640d2

View File

@ -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
} }