Skip to content

Commit ed09ee5

Browse files
committed
Dialog: Added note explaining that _on() is safe to use for shared handlers because of stacking.
1 parent acf153e commit ed09ee5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ui/jquery.ui.dialog.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -757,6 +757,8 @@ $.widget( "ui.dialog", {
757757
if ( !this.document.data( "ui-dialog-overlays" ) ) {
758758

759759
// Prevent use of anchors and inputs
760+
// Using _on() for an event handler shared across many instances is
761+
// safe because the dialogs stack and must be closed in reverse order
760762
this._on( this.document, {
761763
focusin: function( event ) {
762764
if ( isOpening ) {

0 commit comments

Comments
 (0)