Skip to content

Commit

Permalink
using this instead of _name for internal references
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanDonovan committed Jan 7, 2013
1 parent e1f4a55 commit f2a141c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/name.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ var _name = {
var r = Faker.random.number(8);
switch (r) {
case 0:
return Faker.random.name_prefix() + " " + _name.firstName() + " " + _name.lastName();
return Faker.random.name_prefix() + " " + this.firstName() + " " + this.lastName();
case 1:
return _name.firstName() + " " + _name.lastName() + " " + Faker.random.name_suffix();
return this.firstName() + " " + this.lastName() + " " + Faker.random.name_suffix();
}

return _name.firstName() + " " + _name.lastName();
return this.firstName() + " " + this.lastName();
}
};

Expand Down

0 comments on commit f2a141c

Please sign in to comment.