api.on('shutdown', function() { bean.off(timeline); bean.off(volumeSlider); if (resizeHandle) window.cancelAnimationFrame(resizeHandle); common.removeNode(ui); common.find('.fp-ratio', root).forEach(common.removeNode); });
bean.on(root, "mouseenter mouseleave", function(e) { if (noToggle) return; var is_over = e.type == "mouseover", lastMove; // is-mouseover/out hover(is_over); if (is_over) { var reg = function() { hover(true); lastMove = new Date(); }; api.on("pause.x volume.x", reg); bean.on(root, 'mousemove.x', reg); hovertimer = setInterval(function() { if (new Date() - lastMove > conf.mouseoutTimeout) { hover(false); lastMove = new Date(); } }, 100); } else { bean.off(root, 'mousemove.x'); api.off("pause.x volume.x"); clearInterval(hovertimer); } // allow dragging over the player edge });
shutdown: function() { api.unload(); api.trigger('shutdown', [api]); bean.off(root); delete instances[root.getAttribute('data-flowplayer-instance-id')]; root.removeAttribute('data-flowplayer-instance-id'); },
bean.on(document, 'click.fptextarea', function(ev) { if (ev.target === area) return area.select(); ev.stopPropagation(); ev.preventDefault(); common.removeNode(area); bean.off(document, 'click.fptextarea'); });
const dismissSearchPopup = ( event: Event ): void => { event.preventDefault(); toggle.classList.remove('is-active'); popup.classList.add('is-off'); bean.off( document, 'click', // eslint-disable-next-line no-use-before-define maybeDismissSearchPopup ); document.removeEventListener( 'keyup', handleEsc ); };
return this.each(function (el) { bean.off(el, event, handler); });
api.on('shutdown', function() { bean.off(timeline); bean.off(volumeSlider); });
bean.on(document, 'click.outsidemenu', function(ev) { common.css(menu, 'display', 'none'); bean.off(document, 'click.outsidemenu'); });
bean.one(document, 'mouseup touchend', function() { api.dragging = false; common.removeClass(root, 'is-dragging'); bean.off(document, 'mousemove.sld touchmove.sld'); });
clickIds.forEach(function(id) { bean.off(document.getElementById(id), 'click'); });
var bubbleOff = function ( el ) { Event.off( el, eventType( el ), fireBubble ) }
bean.one(document, 'mouseup touchend', function() { api.dragging = false; rootClasses.remove('is-dragging'); bean.off(document, 'mousemove.sld touchmove.sld'); });