Skip to content

Commit

Permalink
Merge pull request #2 from component/improve/inherits
Browse files Browse the repository at this point in the history
use Emiiter() mixin
  • Loading branch information
tj committed May 8, 2013
2 parents ba724c1 + 980f3bb commit c238c88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion file.js
Expand Up @@ -41,7 +41,7 @@ function File(file) {
* Inherits from `Emitter.prototype`.
*/

File.prototype.__proto__ = Emitter.prototype;
Emitter(File.prototype);

/**
* Check if the mime type matches `type`.
Expand Down
2 changes: 1 addition & 1 deletion reader.js
Expand Up @@ -53,7 +53,7 @@ function Reader(reader) {
* Inherits from `Emitter.prototype`.
*/

Reader.prototype.__proto__ = Emitter.prototype;
Emitter(Reader.prototype);

/**
* Onload handler.
Expand Down

0 comments on commit c238c88

Please sign in to comment.