!function(Foundation, $) {
  $('[data-open]').on('click.zf.trigger', function() {
    var id = $(this).data('open');
    $('#' + id).triggerHandler('open.zf.trigger', [$(this)]);
  });

  $('[data-close]').on('click.zf.trigger', function() {
    var id = $(this).data('close');
    if (id) {
    // console.log($('#'+id));
      $('#' + id).triggerHandler('close.zf.trigger', [$(this)]);
    }
    else {
      $(this).trigger('close.zf.trigger');
    }
  });

  $('[data-toggle]').on('click.zf.trigger', function() {
    var id = $(this).data('toggle');
    $('#' + id).triggerHandler('toggle.zf.trigger', [$(this)]);
  });


//chris's testing things----------------
  $(window).on('closeme.zf.dropdown closeme.zf.tooltip closeme.zf.reveal', function(e, pluginId){
    var plugin = e.namespace.split('.')[0];
    var plugins = $('[data-' + plugin + ']').not('[data-yeti-box=' + pluginId + ']');
    plugins.each(function(){
      $(this).triggerHandler('close.zf.trigger', [$(this)]);
    });
  });

  //trying to reposition elements on resize
  // $(window).on('resize.zf.what', function(e){
  //   console.log($('[data-reveal] > [aria-hidden=false]'))
  //   Foundation.reflow();
  // });
// ------------------------------------

  // [PH]
  $('[data-toggler-animate]').each(function() {
    var input = $(this).data('toggler-animate').split(' ');
    var animationIn = input[0];
    var animationOut = input[1];

    $(this).on({
      'open.zf.trigger': function() {
        Foundation.Motion.animateIn($(this), animationIn);
      },
      'close.zf.trigger': function() {
        Foundation.Motion.animateOut($(this), animationOut);
      },
      'toggle.zf.trigger': function() {
        var evt = $(this).is(':visible') ? 'close' : 'open';
        $(this).triggerHandler(evt + '.zf.trigger');
      }
    })
  });

  // [PH]
  $(document).on('close.zf.trigger', '[data-closable]', function() {
    var animation = $(this).data('closable') || 'fadeOut';

    Foundation.Motion.animateOut($(this), animation, function() {
      $(this).trigger('closed.zf');
    });
  });

}(window.Foundation, window.jQuery)

@@ -28,21 +28,16 @@
   $(
-'%5Bdata-open%5D'
+document
 ).on
@@ -48,32 +48,47 @@
 ick.zf.trigger',
+ '%5Bdata-open%5D',
  function() %7B%0A  
@@ -197,22 +197,16 @@
   $(
-'%5Bdata-close%5D'
+document
 ).on
@@ -217,32 +217,48 @@
 ick.zf.trigger',
+ '%5Bdata-close%5D',
  function() %7B%0A  
@@ -482,23 +482,16 @@
   $(
-'%5Bdata-toggle%5D'
+document
 ).on
@@ -510,16 +510,33 @@
 rigger',
+ '%5Bdata-toggle%5D',
  functio

Use delegated events for triggers library, so reflowing is not necessary