Skip to content
Permalink
Browse files

Dialog: Added note explaining that _on() is safe to use for shared ha…

…ndlers because of stacking.
  • Loading branch information
scottgonzalez committed Oct 3, 2013
1 parent acf153e commit ed09ee5b75064c7e6aa221e834cd5843d7c16260
Showing with 2 additions and 0 deletions.
  1. +2 −0 ui/jquery.ui.dialog.js
@@ -757,6 +757,8 @@ $.widget( "ui.dialog", {
if ( !this.document.data( "ui-dialog-overlays" ) ) {

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

0 comments on commit ed09ee5

Please sign in to comment.
You can’t perform that action at this time.