code: function() {
        if (tapTargetWrapper.is('.open')) {
          return;
        }
  
        // Adding open class
        tapTargetWrapper.addClass('open');
  
        setTimeout(function() {
          tapTargetOriginEl.off('click.tapTarget').on('click.tapTarget', function(e) {
            closeTapTarget();
            tapTargetOriginEl.off('click.tapTarget');
          });
  
          $(document).off('click.tapTarget').on('click.tapTarget', function(e) {
            closeTapTarget();
            $(document).off('click.tapTarget');
          });
  
          var throttledCalc = Materialize.throttle(function() {
            calculateTapTarget();
          }, 200);
          $(window).off('resize.tapTarget').on('resize.tapTarget', throttledCalc);
        }, 0);
      }
docs: Open