diff options
| author | FotoVerite <[email protected]> | 2013-06-12 01:22:09 -0400 |
|---|---|---|
| committer | FotoVerite <[email protected]> | 2013-06-12 01:22:09 -0400 |
| commit | 50795072fbbc5cd181b56c37f449eaeea612226b (patch) | |
| tree | ab049959daeaec7bd450e779f04a7bf59f1e62b7 /lib/lorem.js | |
| parent | 84083b241e02325af3eb26e5a2d06983860d67c8 (diff) | |
| parent | dceaccf2ca2c2ff217436404c41f2bf69f7577f6 (diff) | |
| download | faker-50795072fbbc5cd181b56c37f449eaeea612226b.tar.xz faker-50795072fbbc5cd181b56c37f449eaeea612226b.zip | |
Merge branch 'master' of https://github.com/Marak/Faker.js
Diffstat (limited to 'lib/lorem.js')
| -rw-r--r-- | lib/lorem.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/lorem.js b/lib/lorem.js index 7010fca9..baa18ebc 100644 --- a/lib/lorem.js +++ b/lib/lorem.js @@ -14,28 +14,28 @@ var lorem = { // strange issue with the node_min_test failing for captialize, please fix and add this back //return this.words(wordCount + Helpers.randomNumber(7)).join(' ').capitalize(); - return this.words(wordCount + Faker.random.number(7)).join(' '); + return lorem.words(wordCount + Faker.random.number(7)).join(' '); }, sentences: function (sentenceCount) { if (typeof sentenceCount == 'undefined') { sentenceCount = 3; } var sentences = []; for (sentenceCount; sentenceCount > 0; sentenceCount--) { - sentences.push(this.sentence()); + sentences.push(lorem.sentence()); } return sentences.join("\n"); }, paragraph: function (sentenceCount) { if (typeof sentenceCount == 'undefined') { sentenceCount = 3; } - return this.sentences(sentenceCount + Faker.random.number(3)); + return lorem.sentences(sentenceCount + Faker.random.number(3)); }, paragraphs: function (paragraphCount) { if (typeof paragraphCount == 'undefined') { paragraphCount = 3; } var paragraphs = []; for (paragraphCount; paragraphCount > 0; paragraphCount--) { - paragraphs.push(this.paragraph()); + paragraphs.push(lorem.paragraph()); } return paragraphs.join("\n \r\t"); } |
