Example #1
0
 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);
 });
Example #2
0
   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
   });
Example #3
0
 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');
 },
Example #4
0
 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');
 });
Example #5
0
                                    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
                                        );
                                    };
Example #6
0
 return this.each(function (el) {
   bean.off(el, event, handler);
 });
Example #7
0
 api.on('shutdown', function() {
   bean.off(timeline);
   bean.off(volumeSlider);
 });
Example #8
0
 bean.on(document, 'click.outsidemenu', function(ev) {
    common.css(menu, 'display', 'none');
    bean.off(document, 'click.outsidemenu');
 });
Example #9
0
 bean.one(document, 'mouseup touchend', function() {
    api.dragging = false;
    common.removeClass(root, 'is-dragging');
    bean.off(document, 'mousemove.sld touchmove.sld');
 });
Example #10
0
 clickIds.forEach(function(id) {
     bean.off(document.getElementById(id), 'click');
 });
Example #11
0
var bubbleOff = function ( el ) {
  Event.off( el, eventType( el ), fireBubble )
}
Example #12
0
 bean.one(document, 'mouseup touchend', function() {
    api.dragging = false;
    rootClasses.remove('is-dragging');
    bean.off(document, 'mousemove.sld touchmove.sld');
 });