VLC support

This commit is contained in:
DC
2016-04-13 20:38:05 -07:00
committed by DC
parent 3d4d1c8650
commit 229143ffb2
4 changed files with 119 additions and 6 deletions

View File

@@ -21,10 +21,12 @@ function dispatcher (...args) {
var handler = _dispatchers[json]
if (!handler) {
handler = _dispatchers[json] = (e) => {
// Don't click on whatever is below the button
e.stopPropagation()
// Don't regisiter clicks on disabled buttons
if (e.currentTarget.classList.contains('disabled')) return
if (e && e.stopPropagation && e.currentTarget) {
// Don't click on whatever is below the button
e.stopPropagation()
// Don't register clicks on disabled buttons
if (e.currentTarget.classList.contains('disabled')) return
}
_dispatch.apply(null, args)
}
}