blocktactoe
blocktactoe copied to clipboard
TypeError: Cannot read property 'args' of undefined in nextPlayer function
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?