aboutsummaryrefslogtreecommitdiff
path: root/lib/image.js
diff options
context:
space:
mode:
authorMarak <[email protected]>2015-07-08 23:56:22 -0700
committerMarak <[email protected]>2015-07-08 23:56:22 -0700
commit4c1b454b8e3c8d87f2569a2ce0d7730dc31ee821 (patch)
tree6fcbdb8eee0a7365c78043008c8dd5b6a51d39c5 /lib/image.js
parentedb7d482a40e98ce25cd6ba296818be14f291aa1 (diff)
downloadfaker-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.js2
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();