问题描述:

I'm trying to manually call a function from Google Chrome Console, but its saying that

"Uncaught TypeError: undefined is not a function"

My code is as follows:

var ScatterGame = new Class({

Binds: "mStart mEnd mDrop mEnter mLeave touchHandler instructionStart".split(" "),

gameOver: function() {

clearInterval(this.secondTimer);

}

}),

I'm trying to put in ScatterGame.gameOver(), but its throwing that error. Any help would be greatly appreciated

相关阅读:
Top