pepelsbey/shower — Issue #60: Make slide ID optional
Author: pepelsbey
Created: 2012-02-29 13:36:56+00:00
State: open

Actually slide ID is useful only for special styling, so it would be good to add slide ID only when needed. And we can generate slide IDs in lack of existing ones:

```javascript
for (i = 0; i < l; i++) {
var id = slides[i].id; // getting slide id
if(!id) slides[i].id = i+1; // setting slide id
slideList.push({
id: slides[i].id,
hasInnerNavigation: null !== slides[i].querySelector('.inner')
});
}
```

We can user just a number for a slide ID as number withour letter prefixes are allowed as ID values in HTML5. But seems like this approach doesn't work with current inner navigation implementation (it stuck on slide with inner elements).