Skip to content

Commit 6f91c34

Browse files
committed
Fix ups after self peer review
Changed var to let in readme example and sorted indenting on the wheel of fortune code.
1 parent 9a933f1 commit 6f91c34

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Winwheel.js Features Include:
1919

2020
## Example
2121
```javascript
22-
var theWheel = new Winwheel({
22+
let theWheel = new Winwheel({
2323
'numSegments' : 4,
2424
'segments' :
2525
[

examples/wheel_of_fortune/index.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -122,17 +122,17 @@ <h1>Winwheel.js example wheel - wheel of fortune</h1>
122122
'soundTrigger' : 'pin' // Specify pins are to trigger the sound, the other option is 'segment'.
123123
},
124124
'pins' : // Turn pins on.
125-
{
126-
'number' : 24,
127-
'fillStyle' : 'silver',
128-
'outerRadius': 4,
129-
}
125+
{
126+
'number' : 24,
127+
'fillStyle' : 'silver',
128+
'outerRadius': 4,
129+
}
130130
});
131131

132132
// Loads the tick audio sound in to an audio object.
133-
let audio = new Audio('tick.mp3');
133+
let audio = new Audio('tick.mp3');
134134

135-
// This function is called when the sound is to be played.
135+
// This function is called when the sound is to be played.
136136
function playSound()
137137
{
138138
// Stop and rewind the sound if it already happens to be playing.

0 commit comments

Comments
 (0)