bespokejs / bespoke

DIY Presentation Micro-Framework
http://markdalgleish.com/projects/bespoke.js/
MIT License
4.68k stars 443 forks source link

resolves #61 allow slide selector to be specified #63

Closed mojavelinux closed 9 years ago

mojavelinux commented 9 years ago

This patch does introduce some cyclomatic complexity and a slight increase in file size, but I think it completes the picture.

For complaint browsers, the ideal arguments are as follows:

bespoke.from({ parent: 'article', slides: ':scope > section' }, [(plugins)]);

However, :scope is still a fairly recent addition. Of course, this patch provides plenty of other ways to arrive there, including:

bespoke.from({ parent: 'article', slides: 'article > section' }, [(plugins)]);

or even :root article > section to break out of the context.

markdalgleish commented 9 years ago

Thanks for the pull request! I'll bump the version once we've merged your other pull request.

mojavelinux commented 9 years ago

Super! Thanks @markdalgleish!