1
0
mirror of https://github.com/exane/not-gwent-online synced 2024-10-31 10:36:53 +00:00

remove leaders from list

This commit is contained in:
devfake 2015-06-24 17:51:21 +02:00
parent 2c7542df2b
commit 61e04610c0

View File

@ -18,7 +18,12 @@ module.exports = {
}, },
ready: function() { ready: function() {
this.cards = cards; // filter over leaders and store them separately.
this.cards = $.map(cards, (n) => {
if(n.type != 3) return n;
this.leaders.push(n);
});
}, },
methods: { methods: {
@ -30,7 +35,7 @@ module.exports = {
setTimeout(function() { setTimeout(function() {
$('.all-cards').removeClass('remove'); $('.all-cards').removeClass('remove');
}, 600); }, 500);
} }
} }
}; };