Skip to content

Commit bcf3967

Browse files
committed
example should use $.slideUp (because its supposed to be hiding the element, not showing it)
1 parent 5b2da44 commit bcf3967

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,10 @@ For example, using jQuery effects:
214214
},
215215

216216
onleavegame: function() {
217-
$('#game').slideDown('slow', function() {
217+
$('#game').slideUp('slow', function() {
218218
fsm.transition();
219219
};
220-
return StateMachine.ASYNC; // tell StateMachine to defer next state until we call transition (in slideDown callback above)
220+
return StateMachine.ASYNC; // tell StateMachine to defer next state until we call transition (in slideUp callback above)
221221
}
222222

223223
}

0 commit comments

Comments
 (0)