Skip to content

Commit

Permalink
Merge pull request #348 from jmalonzo/jan-exampleEmail-fix
Browse files Browse the repository at this point in the history
Fix 'this' reference in exampleEmail
  • Loading branch information
Marak committed Mar 3, 2016
2 parents 58cd8d3 + e296d6b commit 566ae56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internet.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ var Internet = function (faker) {
*/
self.exampleEmail = function (firstName, lastName) {
var provider = faker.random.arrayElement(faker.definitions.internet.example_email);
return this.email(firstName, lastName, provider);
return self.email(firstName, lastName, provider);
};

/**
Expand Down

0 comments on commit 566ae56

Please sign in to comment.