always stop before rerunning.
This commit is contained in:
Родитель
9ecb5f5c91
Коммит
5bea0d2975
|
@ -489,7 +489,7 @@ module TDev.RT {
|
|||
HTML.mkButton(lf("play again"),() => {
|
||||
tick(Ticks.runtimePlayAgain);
|
||||
m.dismiss();
|
||||
rt.rerun()
|
||||
rt.rerunAsync().done();
|
||||
}, 'wall-dialog-button-huge'),
|
||||
!scriptId ? HTML.mkButton(lf("dismiss"),() => {
|
||||
m.dismiss();
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
///<reference path='refs.ts'/>
|
||||
module TDev.RT {
|
||||
//? time and dates
|
||||
//@ robust skill(2)
|
||||
//@ robust
|
||||
export module Time
|
||||
{
|
||||
var _rt : Runtime;
|
||||
|
|
10
rt/rt.ts
10
rt/rt.ts
|
@ -1755,10 +1755,12 @@ module TDev
|
|||
private startMk: any;
|
||||
private startArgs: any[];
|
||||
|
||||
public rerun() {
|
||||
Util.assert(this.isStopped(), "rerun-isStopped")
|
||||
this.initPageStack();
|
||||
this.run(this.startMk, this.startArgs);
|
||||
public rerunAsync() : Promise {
|
||||
return this.stopAsync().then(() => {
|
||||
Util.assert(this.isStopped(), "rerun-isStopped")
|
||||
this.initPageStack();
|
||||
this.run(this.startMk, this.startArgs);
|
||||
});
|
||||
}
|
||||
|
||||
public run(mk: any, args: any[]) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче