setTimeout closure

2019-01-14

var that = this;
(function (j) {
    setTimeout(function() {
        j.state.start('GameOver');
    }, 2000);
})(that);