Reverted change I made t pinpoint team preview bug

This commit is contained in:
Deukhoofd committed 2016-02-10 04:10:51 +01:00
1 parent cf4ad44d43
commit 5fdcc4b285
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -1,10 +1,10 @@
mixin displayOtherTeam(team, text)
- var teamvisible = team.collection.parents[0].get('visibleteam')
- var isdef = typeof teamvisible
if isdef != 'undefined' && teamvisible
section.battle_team_preview
p= text
ul.row-fluid.unstyled
if isdef != 'undefined' && teamvisible
- team.get('pokemon').each(function(pokemon) {
li.px_40
+displayPokemon(pokemon)
+2 -2
View File
@@ -295,9 +295,9 @@ var locals_ = (locals || {}),battle = locals_.battle,window = locals_.window;var
var block = this.block, attributes = this.attributes || {}, escaped = this.escaped || {};
var teamvisible = team.collection.parents[0].get('visibleteam')
var isdef = typeof teamvisible
buf.push("<section class=\"battle_team_preview\"><p>" + (jade.escape(null == (jade.interp = text) ? "" : jade.interp)) + "</p><ul class=\"row-fluid unstyled\"></ul>");
if ( isdef != 'undefined' && teamvisible)
{
buf.push("<section class=\"battle_team_preview\"><p>" + (jade.escape(null == (jade.interp = text) ? "" : jade.interp)) + "</p><ul class=\"row-fluid unstyled\">");
team.get('pokemon').each(function(pokemon) {
{
buf.push("<li class=\"px_40\">");
@@ -305,8 +305,8 @@ displayPokemon_mixin(pokemon);
buf.push("</li>");
}
})
buf.push("</ul></section>");
}
buf.push("</section>");
};
var displayYourTeam_mixin = function(team, text){
var block = this.block, attributes = this.attributes || {}, escaped = this.escaped || {};