imakewebthings/deck.js — Issue #51: Init throws an error when the slide selector doesn't match any elements
Author: imakewebthings
Created: 2011-11-01 07:22:19+00:00
State: open

If you include no slides and fire up a deck you'll get an error:

```
Uncaught TypeError: Cannot call method 'parentsUntil' of undefined
```

Internally the error is caused by the slides array being empty while `current` is 0, giving `undefined` as the current slide when rearranging states.