mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
state-machine: align tests with TS 0.9.5
This commit is contained in:
@@ -16,11 +16,11 @@ var fsm: StateMachineTest = StateMachine.create({
|
||||
{ name: 'clear', from: 'yellow', to: 'green' }
|
||||
],
|
||||
callbacks: {
|
||||
onpanic: function (event, from, to, msg) { alert('panic! ' + msg); },
|
||||
onclear: function (event, from, to, msg) { alert('thanks to ' + msg); },
|
||||
ongreen: function (event, from, to) { document.body.className = 'green'; },
|
||||
onyellow: function (event, from, to) { document.body.className = 'yellow'; },
|
||||
onred: function (event, from, to) { document.body.className = 'red'; },
|
||||
onpanic: function (event?, from?, to?, msg?) { alert('panic! ' + msg); },
|
||||
onclear: function (event?, from?, to?, msg?) { alert('thanks to ' + msg); },
|
||||
ongreen: function (event?, from?, to?) { document.body.className = 'green'; },
|
||||
onyellow: function (event?, from?, to?) { document.body.className = 'yellow'; },
|
||||
onred: function (event?, from?, to?) { document.body.className = 'red'; },
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user