From d0b588228d4e3b2a1fe7f237e22d1df49a6d1d0f Mon Sep 17 00:00:00 2001 From: LB Johnston Date: Tue, 17 Oct 2023 08:42:00 +1000 Subject: [PATCH] 5.2 release notes - fix code type - We usually use `javascript` not `js` --- docs/releases/5.2.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/releases/5.2.md b/docs/releases/5.2.md index 429029c45f..a71c062e89 100644 --- a/docs/releases/5.2.md +++ b/docs/releases/5.2.md @@ -368,7 +368,7 @@ This behaviour has now moved to a Stimulus controller and leverages DOM events i You can implement roughly the equivalent functionality with this JavaScript function, however, this will not be guaranteed to work in future releases. -```js +```javascript window.updateFooterSaveWarning = (formDirty, commentsDirty) => { if (!formDirty && !commentsDirty) { document.dispatchEvent(new CustomEvent('w-unsaved:clear'));