From 4c1b454b8e3c8d87f2569a2ce0d7730dc31ee821 Mon Sep 17 00:00:00 2001 From: Marak Date: Wed, 8 Jul 2015 23:56:22 -0700 Subject: [api] [refactor] Rename `array_element` and `object_element` to camelCase. Set default max random number to 99999. Added default arguments to some methods. --- lib/image.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/image.js') 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(); -- cgit v1.2.3