From b719b30c235db7a95ca3330b97614beb4117c88e Mon Sep 17 00:00:00 2001 From: Igor Oleinikov Date: Fri, 6 Dec 2013 23:02:55 +0400 Subject: [PATCH] state-machine: align tests with TS 0.9.5 --- state-machine/state-machine-tests.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/state-machine/state-machine-tests.ts b/state-machine/state-machine-tests.ts index 98b6ccf7c..24321fc60 100644 --- a/state-machine/state-machine-tests.ts +++ b/state-machine/state-machine-tests.ts @@ -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'; }, } });