controller.wait

description

Waits until the controller has been completed.

syntax

getController(ELEMENT_NAME).wait()

alternate(s)

  • getController(ELEMENT_NAME).wait( test )


example(s)


@newButton("Start reading")
@    .print()
@    .wait()
@    .remove()
@,
@newController("DashedSentence", {s: "The mouse is happy"} )
@    .print()
@    .log()
$    .wait()
@    .remove()
@,
@newText("Good job!")
@    .print()