Skip to content

Commit

Permalink
Explanatory comment for unsafeDialogOpen
Browse files Browse the repository at this point in the history
  • Loading branch information
spyysalo committed Dec 6, 2012
1 parent ca1c5cb commit 377d9d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/src/visualizer_ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,8 @@ var VisualizerUI = (function($, window, undefined) {
var unsafeDialogOpen = function($dialog) {
// does not restrict tab key to the dialog
// does not set the focus
// but is much faster than dialog('open') for large dialogs, see
// https://github.com/nlplab/brat/issues/934

var widget = $dialog.data('dialog');
if (widget._isOpen) { return; }
Expand Down

0 comments on commit 377d9d6

Please sign in to comment.