Follow-up d400102: Drop irrelevant comment, merge var declaration

Change-Id: I09685da71cdfa21b40258ecffc64fa9a2f6ec272
This commit is contained in:
James D. Forrester 2017-05-22 13:20:09 +02:00
parent a899832759
commit ba6e4e171d

View file

@ -654,10 +654,9 @@
},
open: function () {
// Pre-fill the text fields based on the current selection
var selection, matches, text,
context = $( this ).data( 'context' );
// Restore and immediately save selection state, needed for inserting stuff later
selection = context.$textarea.textSelection( 'getSelection' );
var matches, text,
context = $( this ).data( 'context' ),
selection = context.$textarea.textSelection( 'getSelection' );
// set focus
$( '#wikieditor-toolbar-reference-text' ).focus();
$( '#wikieditor-toolbar-reference-dialog' )