Skip to content

Commit 23249a6

Browse files
committed
Document pjax:beforeReplace event
1 parent d08a2f7 commit 23249a6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,12 @@ container, not the link that was clicked.
230230
<td><code>options</code></td>
231231
<td>fires after pjax has started from a link that got clicked</td>
232232
</tr>
233+
<tr>
234+
<td><code>pjax:beforeReplace</code></td>
235+
<td></td>
236+
<td><code>contents, options</code></td>
237+
<td>before replacing HTML with content loaded from the server</td>
238+
</tr>
233239
<tr>
234240
<td><code>pjax:success</code></td>
235241
<td></td>
@@ -275,6 +281,12 @@ container, not the link that was clicked.
275281
<td><code>null, options</code></td>
276282
<td>before replacing content</td>
277283
</tr>
284+
<tr>
285+
<td><code>pjax:beforeReplace</code></td>
286+
<td></td>
287+
<td><code>contents, options</code></td>
288+
<td>right before replacing HTML with content from cache</td>
289+
</tr>
278290
<tr>
279291
<td><code>pjax:end</code></td>
280292
<td></td>

0 commit comments

Comments
 (0)