From d980ea78e60892ca3db7b6608a79350ee41531cf Mon Sep 17 00:00:00 2001 From: Guangcong Luo Date: Sun, 20 Dec 2015 04:41:20 -0500 Subject: [PATCH] Fix various style issues --- js/battledata.js | 2 +- js/search.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/battledata.js b/js/battledata.js index 4d7a2e131..20824a55f 100644 --- a/js/battledata.js +++ b/js/battledata.js @@ -1083,7 +1083,7 @@ var Tools = { }, getPokemonIcon: function (pokemon) { - this.getIcon(pokemon, true) + return this.getIcon(pokemon, true); }, getIcon: function (pokemon, newSize) { var num = 0; diff --git a/js/search.js b/js/search.js index a48ed729c..abfa8b521 100644 --- a/js/search.js +++ b/js/search.js @@ -125,7 +125,7 @@ this.el.innerHTML = '' + (this.renderingDone ? '' : ''); return true; }; - Search.prototype.all = function() { + Search.prototype.all = function () { var query = this.q; var bufs = [[], [], [], [], [], [], []]; var topbufIndex = -1; @@ -226,7 +226,7 @@ Search.renderRow = function (id, type, matchStart, matchLength, errorMessage) { switch (type) { case 'header': - return '
  • ' +id + '

  • '; + return '
  • ' + id + '

  • '; case 'pokemon': var pokemon = BattlePokedex[id]; return Search.renderPokemonRow(pokemon, matchStart, matchLength, errorMessage);