mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-04-25 16:14:01 -05:00
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:
parent
5f8bb7a92e
commit
ba4c512166
|
|
@ -81,7 +81,7 @@
|
|||
});
|
||||
}
|
||||
|
||||
var TournamentBox = this.TournamentBox = (function () {
|
||||
this.TournamentBox = (function () {
|
||||
function TournamentBox(room, $wrapper) {
|
||||
this.room = room;
|
||||
this.$wrapper = $wrapper;
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@
|
|||
}
|
||||
});
|
||||
|
||||
var LadderRoom = this.LadderRoom = HTMLRoom.extend({
|
||||
this.LadderRoom = HTMLRoom.extend({
|
||||
type: 'ladder',
|
||||
title: 'Ladder',
|
||||
initialize: function () {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
(function ($) {
|
||||
|
||||
var MainMenuRoom = this.MainMenuRoom = this.Room.extend({
|
||||
this.MainMenuRoom = this.Room.extend({
|
||||
type: 'mainmenu',
|
||||
tinyWidth: 340,
|
||||
bestWidth: 628,
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
|
|
@ -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 () {
|
||||
|
|
|
|||
|
|
@ -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>';
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user