Skip to content

Commit 1fcab21

Browse files
committed
Fix missing clearSpan function
1 parent 3192240 commit 1fcab21

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

html-api-debugger/interactivity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class="html-api-debugger-container html-api-debugger--grid"
132132
<div
133133
<?php
134134
wp_on_directive( 'mouseover', 'handleSpanOver' );
135-
wp_on_directive( 'mouseleave', 'handleSpanClear' );
135+
wp_on_directive( 'mouseleave', 'clearSpan' );
136136
?>
137137
>
138138
<pre class="error-holder" data-wp-bind--hidden="!state.htmlapiResponse.error" data-wp-text="state.htmlapiResponse.error"></pre>

html-api-debugger/readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Add a page to wp-admin for debugging the HTML API.
1414
= 1.9 =
1515
* Update WordPress Playground links to use current query args.
1616
* Improve span highlighting reliability.
17+
* Fix an uncuaght exception on undefined clearSpan function.
1718

1819
= 1.8 =
1920
* Highlight spans in HTML input on hover.

html-api-debugger/view.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ const store = createStore(NS, {
257257
},
258258
},
259259

260-
handleSpanClear() {
260+
clearSpan() {
261261
const el = /** @type {HTMLElement} */ (
262262
document.getElementById('processed-html')
263263
);

0 commit comments

Comments
 (0)