'use strict';

import { EventEmitter } from 'events';

/**
 * Plugin Interface
 * @class
 */
export default class {

  /**
   * Construct the plugin.
   * @param {object} plugin
   */
  constructor(plugin) {
    // Process the plugin information. (Verify should be done by the core).
    this.plugin = plugin;

    // Make our own plugin main interface an event emitter.
    // This can be used to communicate and subscribe to others plugins events.
    EventEmitter.call(this.plugin);
  }
}

@@ -81,16 +81,23 @@
 * @class
+ Plugin
 %0A */%0Aexp
@@ -158,164 +158,27 @@
    *
- @param %7Bobject%7D plugin%0A   */%0A  constructor(plugin) %7B%0A    // Process the plugin information. (Verify should be done by the core).%0A    this.plugin = plugin;%0A
+/%0A  constructor() %7B
 %0A   
@@ -343,15 +343,8 @@
 this
-.plugin
 );%0A 

Update plugin structure, use classes.