Skip to content

Commit ff656a4

Browse files
Merge pull request #2 from codyfet/documentation-fix-up-down-button-pressed
Add parameter definition into callback function for 'up_button_pressed' and 'down_button_pressed' events listeners.
2 parents 823f892 + 6da2c3a commit ff656a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

documentation.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,10 @@ <h3>Floor object</h3>
135135
<table class="doctable">
136136
<thead><th width="150">Event</th><th width="280">Explanation</th><th>Example</th></thead>
137137
<tbody>
138-
<tr><td>up_button_pressed</td><td><small>Triggered when someone has pressed the up button at a floor. Note that passengers will press the button again if they fail to enter an elevator.</small></td><td><pre><code>floor.on("up_button_pressed", function() {
138+
<tr><td>up_button_pressed</td><td><small>Triggered when someone has pressed the up button at a floor. Note that passengers will press the button again if they fail to enter an elevator.</small></td><td><pre><code>floor.on("up_button_pressed", function(floor) {
139139
// Maybe tell an elevator to go to this floor?
140140
})</code></pre></td></tr>
141-
<tr><td>down_button_pressed</td><td><small>Triggered when someone has pressed the down button at a floor. Note that passengers will press the button again if they fail to enter an elevator.</small></td><td><pre><code>floor.on("down_button_pressed", function() {
141+
<tr><td>down_button_pressed</td><td><small>Triggered when someone has pressed the down button at a floor. Note that passengers will press the button again if they fail to enter an elevator.</small></td><td><pre><code>floor.on("down_button_pressed", function(floor) {
142142
// Maybe tell an elevator to go to this floor?
143143
})</code></pre></td></tr>
144144

0 commit comments

Comments
 (0)