Merge branch 'develop' into merge-develop-to-goog_module

This commit is contained in:
kozbial
2021-09-21 16:04:33 -07:00
265 changed files with 21385 additions and 7566 deletions

View File

@@ -188,7 +188,12 @@ Code.bindClick = function(el, func) {
el = document.getElementById(el);
}
el.addEventListener('click', func, true);
el.addEventListener('touchend', func, true);
function touchFunc(e) {
// Prevent code from being executed twice on touchscreens.
e.preventDefault();
func(e);
}
el.addEventListener('touchend', touchFunc, true);
};
/**