blocktactoe icon indicating copy to clipboard operation
blocktactoe copied to clipboard

TypeError: Cannot read property 'args' of undefined in nextPlayer function

Open TVI-BIZ opened this issue 6 years ago • 0 comments

hi. I have error in nextPlayer: function. After adding if(eventObj.args.player == account){ for(var i=0; i < 3; i++){ for(var j=0; j< 3; j++){ $($("#board")[0].children[0].children[i].children[j]).off('click').click({x:i,y:j}, App.setStone); } } I have following error when press Create Game button. TypeError: Cannot read property 'args' of undefined at Object.nextPlayer (app.js:28248) at TicTacToe.new.then.instance (app.js:28225)

Can you help me fix that issue?

TVI-BIZ avatar Apr 16 '18 13:04 TVI-BIZ