var closest = function (el, selector) {
  var matchesSelector = el.matches || el.webkitMatchesSelector || el.mozMatchesSelector || el.msMatchesSelector;

  while (el) {
    if (matchesSelector.call(el, selector)) {
      break;
    }
    el = el.parentElement;
  }
  return el;
};

window.FormDataExtension = function () {
  var localActions = {
    alert: function (event) {
      var dataAlert = event.currentTarget.getAttribute('data-alert');
      if (!dataAlert) {
        return true;
      }

      alert(dataAlert);

      return true;
    },
    confirm: function (event) {
      var dataConfirm = event.currentTarget.getAttribute('data-confirm');
      if (!dataConfirm) {
        return true;
      }

      if (!confirm(dataConfirm)) {
        event.preventDefault();
        return false;
      }

      return true;
    },
    submit: function (event) {
      var $targetForm = closest(event.currentTarget, 'form');
      if ($targetForm.length === 0) {
        return true;
      }

      event.preventDefault();
      $targetForm.submit();

      return true;
    },
    clear: function (event) {
      var elementsWithData = closest(event.currentTarget, 'form').querySelectorAll('[name]');
      elementsWithData.forEach(function (element) {
        element.value = null;
      });

      return true;
    }
  };

  return {
    _eventType: null,
    event: function (event) {
      var _ = this;
      var eventResponse = false;
      var actions = (event.currentTarget.getAttribute('data-actions') || '').split(' ');

      this._eventType = event.type;

      actions.every(function (action) {
        var actionEvent = localActions[action];
        if (action === 'submit' && event.currentTarget.tagName.toUpperCase() === 'FORM' && _._eventType === action) {
          eventResponse = true;
          return false;
        }

        if (!actionEvent) {
          window.console.warn('[Form-Data-Extension] Can not find action type: ' + action);
          return true;
        }

        return actionEvent(event);
      });

      return eventResponse;
    }
  };
};
@@ -322,21 +322,23 @@
 %7B%0A  var 
-local
+default
 Actions 
@@ -1329,41 +1329,52 @@
  %7D;%0A
-%0A
   
-return %7B%0A    _eventType: null,
+var _actions = defaultActions;%0A%0A  return %7B
 %0A   
@@ -1404,28 +1404,8 @@
 ) %7B%0A
-      var _ = this;%0A
     
@@ -1527,45 +1527,8 @@
 );%0A%0A
-      this._eventType = event.type;%0A%0A
     
@@ -1593,14 +1593,10 @@
 t = 
-localA
+_a
 ctio
@@ -1702,17 +1702,16 @@
  && 
-_._eventT
+action.t
 ype 

Clear private var in object