Fixed #51 TypeError: ref is undefined
Fixed #51 TypeError: ref is undefined

First argument is expected to be an event, second argument the panel name if provided. If ref is not provided read 'data-panel' from the event target.
denehyg/reveal.js-menu