Skip to content

Commit

Permalink
Fix: Import EventEmitter as specific member
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Spragg committed Jun 22, 2016
1 parent ad1ed79 commit b7b0cf1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/filehound.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ import {
import * as files from './files';
import * as arrays from './arrays';

import EventEmitter from 'events';
import {
EventEmitter
} from 'events';

function isDefined(value) {
return value !== undefined;
Expand All @@ -26,6 +28,7 @@ function getDepth(root, dir) {
class FileHound extends EventEmitter {
constructor() {
super();
EventEmitter.call(this);
this.filters = [];
this.searchPaths = [];
this.searchPaths.push(process.cwd());
Expand Down Expand Up @@ -153,7 +156,7 @@ class FileHound extends EventEmitter {
return this._isMatch(file);
})
.each((file) => {
this.emit('match', file)
this.emit('match', file);
});
}

Expand Down

0 comments on commit b7b0cf1

Please sign in to comment.