Remove trailing whitespace

This commit is contained in:
Freigeist 2015-07-14 16:56:27 +02:00
parent 87b94e7284
commit 19dfae0f61
5 changed files with 7 additions and 7 deletions

View File

@ -194,7 +194,7 @@ var Pokemon = (function () {
this.name = '';
this.species = '';
this.id = '';
this.statbarElem = null;
this.statbarElem = null;
}
Pokemon.prototype.getHPColor = function () {
@ -371,7 +371,7 @@ var Pokemon = (function () {
};
Pokemon.prototype.getIdent = function () {
var slots = ['a','b','c','d','e','f'];
return this.ident.substr(0,2) + slots[this.slot] + this.ident.substr(2);
return this.ident.substr(0,2) + slots[this.slot] + this.ident.substr(2);
};
Pokemon.prototype.removeVolatile = function (volatile) {
if (!this.hasVolatile(volatile)) return;
@ -1771,7 +1771,7 @@ var Side = (function () {
if (!kwargs.silent) {
var fromeffect = Tools.getEffect(kwargs.from);
switch (fromeffect.id) {
case 'allyswitch':
case 'allyswitch':
this.battle.message('<small>' + pokemon.getName() + ' and ' + target.getLowerName() + ' switched places.</small>');
break;
default:

View File

@ -464,7 +464,7 @@
}
if (this.request.forceSwitch !== true) {
var faintedLength = this.request.forceSwitch.filter(function (fainted) {return fainted;}).length;
this.choice.freedomDegrees = faintedLength - this.battle.mySide.pokemon.slice(this.battle.mySide.active.length).filter(function (mon) {return !mon.zerohp;}).length;
this.choice.freedomDegrees = faintedLength - this.battle.mySide.pokemon.slice(this.battle.mySide.active.length).filter(function (mon) {return !mon.zerohp;}).length;
if (this.choice.freedomDegrees < 0) this.choice.freedomDegrees = 0;
this.choice.canSwitch = faintedLength - this.choice.freedomDegrees;

View File

@ -303,7 +303,7 @@
this.room.notifyOnce("Tournament Automatic Disqualification Warning", "Room: " + this.room.title + "\nSeconds: " + seconds, 'tournament-autodq-warning');
}
break;
case 'autostart':
if (data[0] === 'off') {
this.room.$chat.append("<div class=\"notice tournament-message-autostart\">The tournament's automatic start timeout has been turned off.</div>");

View File

@ -862,7 +862,7 @@
Tools.prefs('avatar', avatar);
}
return text; // Send the /avatar command through to the server.
// documentation of client commands
case 'help':
switch (toId(target)) {

View File

@ -276,7 +276,7 @@
},
// drag and drop
// because of a bug in Chrome and Webkit:
// https://code.google.com/p/chromium/issues/detail?id=410328
// we can't use CSS :hover