Sha256: 8465bf06864189831c0fa658fa24fe9257a6fcc407fcb44436702d74663b14db
Contents?: true
Size: 297 Bytes
Versions: 14
Compression:
Stored size: 297 Bytes
Contents
import Rails from '@rails/ujs'; const toggleMenu = function(event) { const parent = this.parentNode if (!("open" in parent.dataset)) { parent.dataset.open = "" } else { delete parent.dataset.open } } Rails.delegate(document, "#main-menu [data-menu-button]", "click", toggleMenu)
Version data entries
14 entries across 14 versions & 1 rubygems