Remove local class definitions for LGTM

This makes how classes are defined in the client less consistent
than before, but the new client, which doesn't have this problem, is
well underway, so this isn't a big deal in the long term.
This commit is contained in:
Guangcong Luo 2018-10-28 05:37:20 -05:00
parent 5f8bb7a92e
commit ba4c512166
7 changed files with 11 additions and 11 deletions

View File

@ -81,7 +81,7 @@
});
}
var TournamentBox = this.TournamentBox = (function () {
this.TournamentBox = (function () {
function TournamentBox(room, $wrapper) {
this.room = room;
this.$wrapper = $wrapper;

View File

@ -82,7 +82,7 @@
}
});
var LadderRoom = this.LadderRoom = HTMLRoom.extend({
this.LadderRoom = HTMLRoom.extend({
type: 'ladder',
title: 'Ladder',
initialize: function () {

View File

@ -1,6 +1,6 @@
(function ($) {
var MainMenuRoom = this.MainMenuRoom = this.Room.extend({
this.MainMenuRoom = this.Room.extend({
type: 'mainmenu',
tinyWidth: 340,
bestWidth: 628,

View File

@ -1,6 +1,6 @@
(function ($) {
var RoomsRoom = this.RoomsRoom = Room.extend({
this.RoomsRoom = Room.extend({
minWidth: 320,
maxWidth: 1024,
type: 'rooms',
@ -111,7 +111,7 @@
}
});
var BattlesRoom = this.BattlesRoom = Room.extend({
this.BattlesRoom = Room.extend({
minWidth: 320,
maxWidth: 1024,
type: 'battles',

View File

@ -3,7 +3,7 @@
// this is a useful global
var teams;
var TeambuilderRoom = exports.TeambuilderRoom = exports.Room.extend({
exports.TeambuilderRoom = exports.Room.extend({
type: 'teambuilder',
title: 'Teambuilder',
initialize: function () {

View File

@ -1,6 +1,6 @@
(function ($) {
var Topbar = this.Topbar = Backbone.View.extend({
this.Topbar = Backbone.View.extend({
events: {
'click a': 'click',
'click .username': 'clickUsername',
@ -927,7 +927,7 @@
}
});
var LoginPasswordPopup = this.LoginPasswordPopup = Popup.extend({
this.LoginPasswordPopup = Popup.extend({
type: 'semimodal',
initialize: function (data) {
var buf = '<form>';

View File

@ -357,7 +357,7 @@
}
});
var App = this.App = Backbone.Router.extend({
this.App = Backbone.Router.extend({
root: '/',
routes: {
'*path': 'dispatchFragment'
@ -1884,7 +1884,7 @@
});
var Room = this.Room = Backbone.View.extend({
this.Room = Backbone.View.extend({
className: 'ps-room',
constructor: function (options) {
if (!this.events) this.events = {};
@ -2580,7 +2580,7 @@
}
});
var ProxyPopup = this.ProxyPopup = Popup.extend({
this.ProxyPopup = Popup.extend({
type: 'modal',
initialize: function (data) {
this.callback = data.callback;