Skip to content

Commit

Permalink
Fixed the Client class
Browse files Browse the repository at this point in the history
  • Loading branch information
cedx committed Mar 23, 2017
1 parent 59544ad commit a91b291
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/client.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import {Blog} from './blog';
import * as pkg from '../package.json';
import EventEmitter from 'events';
import superagent from 'superagent';
import url from 'url';

import {Blog} from './blog';
import * as pkg from '../package.json';

/**
* Submits comments to the [Akismet](https://akismet.com) service.
*/
export class Client {
export class Client extends EventEmitter {

/**
* The HTTP header containing the Akismet error messages.
Expand All @@ -30,6 +32,7 @@ export class Client {
* @param {Blog|string} [blog] The front page or home URL of the instance making requests.
*/
constructor(apiKey = '', blog = null) {
super();

/**
* The Akismet API key.
Expand Down

0 comments on commit a91b291

Please sign in to comment.