Skip to content

Commit

Permalink
Merge pull request #190 from marijnh/master
Browse files Browse the repository at this point in the history
Bind exported methods
  • Loading branch information
broofa committed Apr 12, 2018
2 parents abcb6e1 + 9d2a7b8 commit c013a08
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Mime.js
Expand Up @@ -11,6 +11,10 @@ function Mime() {
for (var i = 0; i < arguments.length; i++) {
this.define(arguments[i]);
}

this.define = this.define.bind(this);
this.getType = this.getType.bind(this);
this.getExtension = this.getExtension.bind(this);
}

/**
Expand Down

0 comments on commit c013a08

Please sign in to comment.