Since this library has progressive enhancement, it would be good if you added a check for document.body.dataset and if it doesn't exist, then abort. That would prevent errors in any browsers that don't support dataset instead of error'ing out and halting the execution.
Since this library has progressive enhancement, it would be good if you added a check for
document.body.dataset
and if it doesn't exist, then abort. That would prevent errors in any browsers that don't supportdataset
instead of error'ing out and halting the execution.