Browse Source

remove unnecessary logging

Vladimir Bykov 11 years ago
parent
commit
890983f763
1 changed files with 0 additions and 8 deletions
  1. 0 8
      apps/web/priv/static/app/js/okey/deck.js

+ 0 - 8
apps/web/priv/static/app/js/okey/deck.js

@@ -91,7 +91,6 @@ function DeckScope(scope) {
                     console.log('i=', i)
                     console.log('i=', i)
                     if(this.cards[snd.j][i] == null || this.cards[snd.j][i] == selected){
                     if(this.cards[snd.j][i] == null || this.cards[snd.j][i] == selected){
                         var j = _direction(i)
                         var j = _direction(i)
-                        var cards = []
                         for(; _cond(j, i); _op()){
                         for(; _cond(j, i); _op()){
                             console.log('j=', j)
                             console.log('j=', j)
                             card = this.cards[fst.j][j]
                             card = this.cards[fst.j][j]
@@ -102,13 +101,6 @@ function DeckScope(scope) {
                                     to: [trfs[fst.j][direction(j)].x, trfs[fst.j][direction(j)].y].join(' ')
                                     to: [trfs[fst.j][direction(j)].x, trfs[fst.j][direction(j)].y].join(' ')
                                 })
                                 })
 
 
-                                console.log({
-                                    from: [trfs[fst.j][j].x, trfs[fst.j][j].y].join(' '),
-                                    to: [trfs[fst.j][direction(j)].x, trfs[fst.j][direction(j)].y].join(' ')
-                                })
-
-                                cards.push(card)
-
                                 if(selected){
                                 if(selected){
                                     selected.dragHandler.initTrf = [trfs[fst.j][j].x, trfs[fst.j][j].y]
                                     selected.dragHandler.initTrf = [trfs[fst.j][j].x, trfs[fst.j][j].y]
                                 }
                                 }