From 60d89224e76badc1bb6cbfd1b96f6f42868039d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=8B=E1=85=A2=E1=84=91=E1=85=B3=E1=86=AF=20=E1=84=82?= =?UTF-8?q?=E1=85=A9=E1=84=90=E1=85=B3=E1=84=87=E1=85=AE=E1=86=A8?= Date: Thu, 25 Oct 2018 12:28:10 +0900 Subject: [PATCH] Fix: apply IE code style --- src/game/mouse/card_matching/game.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/game/mouse/card_matching/game.js b/src/game/mouse/card_matching/game.js index e29bf77..60e5a9b 100644 --- a/src/game/mouse/card_matching/game.js +++ b/src/game/mouse/card_matching/game.js @@ -287,7 +287,7 @@ var Game = { this.card_selected_edge.alpha = 0; }, - cardClicked(col, row) { + cardClicked: function(col, row) { var index = this.getCardIndex(col, row); if(this.isCardSelectEdgeActivated() == false) { // card select edge is not activated @@ -330,45 +330,45 @@ var Game = { }, - isSelectedBefore(col, row) { + isSelectedBefore: function(col, row) { if(this.selectedCardCol == col && this.selectedCardRow == row) return true; return false; }, - getCardIndex(col, row) { + getCardIndex: function(col, row) { return index = row * DudeCard.MAX_CARD_COLUMN_NO + col; }, - isFrontCard(col, row) { + isFrontCard: function(col, row) { return this.cards[this.getCardIndex(col, row)].isFront(); }, - flipToFront(col, row) { + flipToFront: function(col, row) { var index = row * DudeCard.MAX_CARD_COLUMN_NO + col; this.cards[this.getCardIndex(col, row)].flipToFront(); }, - flipToBack(col, row) { + flipToBack: function(col, row) { this.cards[this.getCardIndex(col, row)].flipToBack(); }, - clearCards(col, row) { + clearCards: function(col, row) { var index = this.getCardIndex(col, row); this.cards[index].hide(); index = this.selectedCardRow * DudeCard.MAX_CARD_COLUMN_NO + this.selectedCardCol; this.cards[index].hide(); }, - resetCards(col, row) { + resetCards: function(col, row) { var index = this.getCardIndex(col, row); this.cards[index].show(col, row); index = this.selectedCardRow * DudeCard.MAX_CARD_COLUMN_NO + this.selectedCardCol; this.cards[index].hide(this.selectedCardCol, this.selectedCardRow); }, - showSelectedCard(col, row) { + showSelectedCard: function(col, row) { this.isCardSelected = true; var index = this.getCardIndex(col, row); @@ -471,7 +471,7 @@ var Game = { - setOpenCardInfo(col, row) { + setOpenCardInfo: function(col, row) { var cardIndex = this.getCardIndex(col, row); for(var i = 0; i < 2; i++) { @@ -484,7 +484,7 @@ var Game = { } }, - resetOpenCardInfo(col, row) { + resetOpenCardInfo: function(col, row) { var cardIndex = this.getCardIndex(col, row); for(var i = 0; i < 2; i++) { @@ -495,7 +495,7 @@ var Game = { } }, - isOpenedCard(col, row) { + isOpenedCard: function(col, row) { var cardIndex = this.getCardIndex(col, row); for(var i = 0; i < 2; i++) { if(this.openCardInfoIndex[i] == cardIndex)