[ticket/13713] Fix variable definitions as requested by @hanakin

PHPBB3-13713
This commit is contained in:
lavigor 2018-07-11 01:06:58 +03:00 committed by Marc Alexander
parent 783449d626
commit b5ce3343ed
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -397,7 +397,8 @@ function getCaretPosition(txtarea) {
}
function getMatchedNames(query, items, searchKey) {
let i, len;
let i;
let len;
let _results = [];
for (i = 0, len = items.length; i < len; i++) {
let item = items[i];
@ -468,7 +469,8 @@ function getCaretPosition(txtarea) {
});
},
sorter: function(query, items, searchKey) {
let i, len;
let i;
let len;
let highestPriority = 0;
let _unsorted = {u: {}, g: {}};
let _exactMatch = [];
@ -543,7 +545,8 @@ function getCaretPosition(txtarea) {
phpbb.mentions = new Mentions();
$(document).ready(function() {
let doc, textarea;
let doc;
let textarea;
// find textarea, make sure browser supports necessary functions
if (document.forms[form_name]) {