Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions generators/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ <h3>300px Worth of Words</h3>

document.querySelector('#add-many-words').addEventListener('click', function() {
// This will iterate over an infinite sequence of words.
var infiniteIpsumIterator = new loremIpsumGenerator();
var infiniteIpsumIterator = loremIpsumGenerator();
var manyWordsElement = document.querySelector('#many-words');

for (var word of infiniteIpsumIterator) {
Expand Down Expand Up @@ -167,7 +167,7 @@ <h3>300px Worth of Words</h3>
// Create an iterator from the generator if it doesn't already exist.
// The iterator will yield 5 words, and whether the first word is in uppercase
// or not depends on the value of the 'uppercase' parameter.
fiveWordIpsumIterator = new loremIpsumGenerator(5, uppercase);
fiveWordIpsumIterator = loremIpsumGenerator(5, uppercase);
}

// Get the next value from the iterator.
Expand Down