style: drop redundant semicolons after function declarations (filegen templates + static js)

This commit is contained in:
Florian Andrew George Berthold 2026-06-10 06:13:19 +02:00
parent 1491db51e3
commit 1c88254a06
18 changed files with 33 additions and 33 deletions

View file

@ -68,7 +68,7 @@
} while ( elem = elem.parentNode ); } while ( elem = elem.parentNode );
return getRGB(color); return getRGB(color);
}; }
// Some named colors to work with // Some named colors to work with
// From Interface by Stefan Petre // From Interface by Stefan Petre

View file

@ -228,7 +228,7 @@ function g_enhanceTextarea (ta, opt) {
} }
ta.data("wh-enhanced", true); ta.data("wh-enhanced", true);
}; }
$WH.createOptionsMenuWidget = function (id, txt, opt) { $WH.createOptionsMenuWidget = function (id, txt, opt) {
var chevron = $WH.createOptionsMenuWidget.chevron; var chevron = $WH.createOptionsMenuWidget.chevron;

View file

@ -2961,7 +2961,7 @@ Listview.extraCols = {
var mText = ConditionList.createCell(row.condition); var mText = ConditionList.createCell(row.condition);
Markup.printHtml(mText, td); Markup.printHtml(mText, td);
return;
}, },
getVisibleText: function(row) getVisibleText: function(row)
{ {
@ -3875,7 +3875,7 @@ Listview.funcBox = {
} }
); );
} }
return;
}, },
coFlagOutOfDate: function(comment) coFlagOutOfDate: function(comment)
@ -3975,7 +3975,7 @@ Listview.funcBox = {
} }
// aowow: custom end // aowow: custom end
return;
} }
}, },

View file

@ -144,7 +144,7 @@ Listview.templates = {
$(wrapper).append(revText); $(wrapper).append(revText);
} }
return;
}, },
getVisibleText: function(guide) getVisibleText: function(guide)
{ {
@ -359,7 +359,7 @@ Listview.templates = {
span.addClass('q2'); span.addClass('q2');
$(td).append(span); $(td).append(span);
return;
}, },
sortFunc: function(a, b) sortFunc: function(a, b)
{ {
@ -2208,7 +2208,7 @@ Listview.templates = {
a.addClass('listview-cleartext'); a.addClass('listview-cleartext');
a.attr('href', '?user=' + user.username); a.attr('href', '?user=' + user.username);
$(td).append(a); $(td).append(a);
return;
}, },
getVisibleText: function(user) { getVisibleText: function(user) {
return user.username; return user.username;
@ -2226,7 +2226,7 @@ Listview.templates = {
type: 'text', type: 'text',
compute: function(user, td) { compute: function(user, td) {
$(td).append($WH.number_format(user.reputation)); $(td).append($WH.number_format(user.reputation));
return;
}, },
sortFunc: function(a, b) { sortFunc: function(a, b) {
if (b.reputation == a.reputation) if (b.reputation == a.reputation)
@ -2251,7 +2251,7 @@ Listview.templates = {
sp.html(buf); sp.html(buf);
$(td).append(sp); $(td).append(sp);
return;
}, },
sortFunc: function(a, b) { sortFunc: function(a, b) {
var sumA = (a.gold * 1000 * 1000) + (a.silver * 1000) + a.copper; var sumA = (a.gold * 1000 * 1000) + (a.silver * 1000) + a.copper;
@ -2267,7 +2267,7 @@ Listview.templates = {
type: 'text', type: 'text',
compute: function(user, td) { compute: function(user, td) {
$(td).append($WH.number_format(user.comments)); $(td).append($WH.number_format(user.comments));
return;
}, },
sortFunc: function(a, b) { sortFunc: function(a, b) {
if (a.comments == b.comments) if (a.comments == b.comments)
@ -2281,7 +2281,7 @@ Listview.templates = {
type: 'text', type: 'text',
compute: function(user, td) { compute: function(user, td) {
$(td).append($WH.number_format(user.posts)); $(td).append($WH.number_format(user.posts));
return;
}, },
sortFunc: function(a, b) { sortFunc: function(a, b) {
if (a.posts == b.posts) if (a.posts == b.posts)
@ -2295,7 +2295,7 @@ Listview.templates = {
type: 'text', type: 'text',
compute: function(user, td) { compute: function(user, td) {
$(td).append($WH.number_format(user.screenshots)); $(td).append($WH.number_format(user.screenshots));
return;
}, },
sortFunc: function(a, b) { sortFunc: function(a, b) {
if (a.screenshots == b.screenshots) if (a.screenshots == b.screenshots)
@ -2309,7 +2309,7 @@ Listview.templates = {
type: 'text', type: 'text',
compute: function(user, td) { compute: function(user, td) {
$(td).append($WH.number_format(user.reports)); $(td).append($WH.number_format(user.reports));
return;
}, },
sortFunc: function(a, b) { sortFunc: function(a, b) {
if (a.reports == b.reports) if (a.reports == b.reports)
@ -2323,7 +2323,7 @@ Listview.templates = {
type: 'text', type: 'text',
compute: function(user, td) { compute: function(user, td) {
$(td).append($WH.number_format(user.votes)); $(td).append($WH.number_format(user.votes));
return;
}, },
sortFunc: function(a, b) { sortFunc: function(a, b) {
if (a.votes == b.votes) if (a.votes == b.votes)
@ -2337,7 +2337,7 @@ Listview.templates = {
type: 'text', type: 'text',
compute: function(user, c) { compute: function(user, c) {
$(c).append($WH.number_format(user.uploads)); $(c).append($WH.number_format(user.uploads));
return;
}, },
sortFunc: function(a, c) { sortFunc: function(a, c) {
if (a.uploads == c.uploads) if (a.uploads == c.uploads)
@ -2396,7 +2396,7 @@ Listview.templates = {
else { else {
$(td).append(l_reputation_names[rep.action]); $(td).append(l_reputation_names[rep.action]);
} }
return;
}, },
getVisibleText: function(rep) { getVisibleText: function(rep) {
return l_reputation_names[rep.action]; return l_reputation_names[rep.action];
@ -2418,7 +2418,7 @@ Listview.templates = {
} }
$(td).append(span); $(td).append(span);
return;
}, },
getVisibleText: function(rep) { getVisibleText: function(rep) {
return rep.amount; return rep.amount;

View file

@ -152,7 +152,7 @@ function Mapper(opt, noScroll)
this.setZones(opt.zoneparent, opt.zones); this.setZones(opt.zoneparent, opt.zones);
this.updateMap(noScroll); this.updateMap(noScroll);
}; }
Mapper.sizes = [ Mapper.sizes = [
[ 488, 325, 'normal'], [ 488, 325, 'normal'],
@ -1080,7 +1080,7 @@ Mapper.prototype = {
this.onPinUpdate && this.onPinUpdate(this); this.onPinUpdate && this.onPinUpdate(this);
return;
}, },
pinOver: function() pinOver: function()

View file

@ -151,7 +151,7 @@ function g_GetCommentRoleLabel(roles, title)
return LANG.premiumuser; return LANG.premiumuser;
return null; return null;
}; }
function g_formatDate(sp, elapsed, theDate, time, alone) function g_formatDate(sp, elapsed, theDate, time, alone)
{ {

View file

@ -2289,7 +2289,7 @@ function TalentCalc() {
_setPoints(basePoints, -1); _setPoints(basePoints, -1);
_setGlyphSlots(lvl); _setGlyphSlots(lvl);
_refreshGlyphs(); _refreshGlyphs();
}; }
function _setLock(locked) { function _setLock(locked) {
if (_locked != locked) { if (_locked != locked) {

View file

@ -100,4 +100,4 @@ function updateSnippet() {
$("#snippet").val(a) $("#snippet").val(a)
} }
}) })
}; }

View file

@ -16,4 +16,4 @@ function ar_ValidateUrl(a) {
else { else {
return "You used invalid characters in your URL.\n\nYou can only use the following:\n a to z\n 0 to 9\n = _ & . / -" return "You used invalid characters in your URL.\n\nYou can only use the following:\n a to z\n 0 to 9\n = _ & . / -"
} }
}; }

View file

@ -81,4 +81,4 @@ function updatePlaceholder() {
else else
$("#description").text(data); $("#description").text(data);
}) })
}; }

View file

@ -553,7 +553,7 @@ $WH.eO = function(z) {
// Duplicate object // Duplicate object
$WH.dO = function(s) { $WH.dO = function(s) {
function f(){}; function f(){}
f.prototype = s; f.prototype = s;
return new f; return new f;
} }

View file

@ -1367,7 +1367,7 @@ qq.extend(qq.UploadHandlerXhr.prototype, {
} }
for (key in this._options.customHeaders){ for (key in this._options.customHeaders){
xhr.setRequestHeader(key, this._options.customHeaders[key]); xhr.setRequestHeader(key, this._options.customHeaders[key]);
}; }
xhr.send(file); xhr.send(file);
}, },
_onComplete: function(id, xhr){ _onComplete: function(id, xhr){

View file

@ -88,4 +88,4 @@ function ma_UpdateLink(_) {
} }
$WH.ge('link-to-this-map').href = b; $WH.ge('link-to-this-map').href = b;
}; }

View file

@ -119,4 +119,4 @@ function pc_readPound() {
pc_object.setWhBuild(pc_build); pc_object.setWhBuild(pc_build);
} }
} }
}; }

View file

@ -588,7 +588,7 @@ function pr_addEquipButton(id, itemId)
$('#' + id).append(button); $('#' + id).append(button);
return;
} }
}); });
} }

View file

@ -143,4 +143,4 @@ function tc_readPound() {
} }
} }
} }
}; }

View file

@ -165,7 +165,7 @@ Listview.funcBox.beforeUserComments = function()
}).bind(this); }).bind(this);
$WH.ae(d, i); $WH.ae(d, i);
} }
}; }
this.customFilter = function (comment, i) this.customFilter = function (comment, i)
{ {

View file

@ -801,7 +801,7 @@ function () {
if (!resizing) { if (!resizing) {
// aowow - /uploads/videos/ not seen on server // aowow - /uploads/videos/ not seen on server
// aOriginal.href = g_staticUrl + '/uploads/videos/' + (video.pending ? 'pending' : 'normal') + '/' + video.id + '.jpg'; // aOriginal.href = g_staticUrl + '/uploads/videos/' + (video.pending ? 'pending' : 'normal') + '/' + video.id + '.jpg';
aOriginal.href = $WH.sprintf(vi_siteurls[video.videoType], video.videoId);; aOriginal.href = $WH.sprintf(vi_siteurls[video.videoType], video.videoId);
var hasFrom = video.date && video.user; var hasFrom = video.date && video.user;
if (hasFrom) { if (hasFrom) {
var var