I have this class/function
function Menu() { this.closetimer = 0; this.dropdown = 0; } Menu.prototype.menuTimer = function() { this.closetimer = setTi
In your setTimeout() callback, this refers to window, just keep a reference like this:
this
window
Menu.prototype.menuTimer = function(){ var self = this; this.closetimer = setTimeout(function(){ self.menuClose(); }, this.timeout); }