diff options
| author | Marak <[email protected]> | 2015-07-08 23:56:22 -0700 |
|---|---|---|
| committer | Marak <[email protected]> | 2015-07-08 23:56:22 -0700 |
| commit | 4c1b454b8e3c8d87f2569a2ce0d7730dc31ee821 (patch) | |
| tree | 6fcbdb8eee0a7365c78043008c8dd5b6a51d39c5 /lib/image.js | |
| parent | edb7d482a40e98ce25cd6ba296818be14f291aa1 (diff) | |
| download | faker-4c1b454b8e3c8d87f2569a2ce0d7730dc31ee821.tar.xz faker-4c1b454b8e3c8d87f2569a2ce0d7730dc31ee821.zip | |
[api] [refactor] Rename `array_element` and `object_element` to camelCase. Set default max random number to 99999. Added default arguments to some methods.
Diffstat (limited to 'lib/image.js')
| -rw-r--r-- | lib/image.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/image.js b/lib/image.js index e791ffea..01f7f5cb 100644 --- a/lib/image.js +++ b/lib/image.js @@ -4,7 +4,7 @@ var Image = function (faker) { self.image = function () { var categories = ["abstract", "animals", "business", "cats", "city", "food", "nightlife", "fashion", "people", "nature", "sports", "technics", "transport"]; - return self[faker.random.array_element(categories)](); + return self[faker.random.arrayElement(categories)](); }; self.avatar = function () { return faker.internet.avatar(); |
