Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yuezk committed Feb 2, 2016
1 parent 2bbcac4 commit cba330b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ var machine = $(foo).slotMachine();
Shuffle:

```javascript
machine.shuffle( repeat, onStopCallback ); //No args to make rotate infinitely
machine.shuffle( repeat, onStopCallback ); //No args to make rotate infinitely, `repeat` is optional
```

Change the selected element:
Expand Down Expand Up @@ -94,6 +94,12 @@ Change spin direction, machine must not be running:
machine.direction = direction; //direction must be a String ('up' || 'down')
```

Destroy the machine. It will be useful when you want to reuse DOM:

```javascript
machine.destroy();
```

## Params

Params must be an object, optionally containing the next parammeters:
Expand Down

0 comments on commit cba330b

Please sign in to comment.