diff options
author | Scott González <scott.gonzalez@gmail.com> | 2013-10-03 12:09:50 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2013-10-03 12:09:50 -0400 |
commit | ed09ee5b75064c7e6aa221e834cd5843d7c16260 (patch) | |
tree | 9dfffb551c13726eed038acd7ffc06bd8e24fb0f /ui/jquery.ui.dialog.js | |
parent | acf153e0b45ee333b1ea99842494c839462686a4 (diff) | |
download | jquery-ui-ed09ee5b75064c7e6aa221e834cd5843d7c16260.tar.gz jquery-ui-ed09ee5b75064c7e6aa221e834cd5843d7c16260.zip |
Dialog: Added note explaining that _on() is safe to use for shared handlers because of stacking.
Diffstat (limited to 'ui/jquery.ui.dialog.js')
-rw-r--r-- | ui/jquery.ui.dialog.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js index 0669cd852..cbae739bf 100644 --- a/ui/jquery.ui.dialog.js +++ b/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 ) { |