bartaz/impress.js — pull request #293 by jasvrcek (2013-06-06 05:02:31+00:00)
Title: added getActiveStep to api

api.getActiveStep() returns the active element, or an empty div if api.init() has not been called.

I wanted to call a setTimeout on api.next() unless the last slide in my presentation is active:

```javascript
function doNext() {
api.next();
if (api.getActiveStep().id !== 'my-last-step') {
setTimeout(function(){
doNext();
}, 2000);
}
}
```

This would also allow you to do things with custom data attributes:
```

hello

```