4 display: "", //do not show anything...
5 problem: undefined, //current problem in view
8 toggleDisplay: function(elt
) {
9 if (this.display
== elt
)
10 this.display
= ""; //hide
12 this.display
= elt
; //show
14 showProblem: function(problemTxt
) {
15 this.problem
= JSON
.parse(problemTxt
);
16 this.display
= "game";