code: function showEffect(e) {
      var element = getWavesEffectElement(e);
  
      if (element !== null) {
        Effect.show(e, element);
  
        if ('ontouchstart' in window) {
          element.addEventListener('touchend', Effect.hide, false);
          element.addEventListener('touchcancel', Effect.hide, false);
        }
  
        element.addEventListener('mouseup', Effect.hide, false);
        element.addEventListener('mouseleave', Effect.hide, false);
        element.addEventListener('dragend', Effect.hide, false);
      }
    }
docs: Bubble the click and show effect if .waves-effect elem was found