var Minimitter = function Minimitter() {
  listeners = {};
};

Minimitter.prototype.on = function(name, callback) {
  this.listeners[name] = this.listeners[name] || [];
  this.listeners[name].push(callback);
};

Minimitter.prototype.off = function(name, callback) {
  this.listeners[name] = this.listeners[name] || [];
  var indexOfCallback = this.listeners[name].indexOf(callback);
  if(~indexOfCallback) {
    this.listeners[name].slice(indexOfCallback, 1);
  }
};

Minimitter.prototype.emit = function(name, data) {
  this.listeners[name].forEach(function(callback) {
    try {
      callback(data);
    } catch {
      console.error('A callback has failed.');
    }
  });
};

@@ -1,12 +1,8 @@
-var 
 Minimitt
@@ -32,16 +32,21 @@
 r() %7B%0A  
+this.
 listener
@@ -608,16 +608,21 @@
  %7D catch
+(err)
  %7B%0A     

Fix missing argument from catch and globalize Minimitter.