setTimeout with class method
December 26, 2009Josh Brown View CommentsThere are already a few solutions floating around on how to make setTimeout or setInterval call a method in your class. The typical solution involves a intermediate parameters and arbitrary functions. Here is mine:
setTimeout( function(o) { o.method() }, 1000, this );
It creates an intermediate function which accepts your instance from the parameters and calls your [...]