var installOneTimeTap = (function (window) {
    "use strict";

    function installOneTimeTap(element, callback) {
        if ('ontouchstart' in window) {
            element.addEventListener('touchstart', handleClick);
        }

        element.addEventListener('click', handleClick);
        function handleClick(event) {
            event.preventDefault();

            if ('ontouchstart' in window) {
                element.removeEventListener('touchstart', handleClick);
            }

            element.removeEventListener('click', handleClick);

            callback();
        }
    }

    return installOneTimeTap;
})(window);
var installOneTimeTap = (function (window) {
    "use strict";

    function installOneTimeTap(element, callback) {
        if ('ontouchstart' in window) {
            element.addEventListener('touchstart', handleClick);
        }

        element.addEventListener('click', handleClick);
        function handleClick(event) {
            event.preventDefault();

            if ('ontouchstart' in window) {
                element.removeEventListener('touchstart', handleClick);
            }

            element.removeEventListener('click', handleClick);

            callback(event);
        }
    }

    return installOneTimeTap;
})(window);
add event payload to callback, ctx: fix go full screen cancel button refs #35 - handle orientation #core (cherry picked from commit a3cb542)