state-machine: align tests with TS 0.9.5

This commit is contained in:
Igor Oleinikov
2013-12-06 23:02:55 +04:00
parent 4f3f6f58f5
commit b719b30c23
+5 -5
View File
@@ -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'; },
}
});