I've got a bunch of similar objects that all have click events binded to them, and once they're dispatched they set off a timer which is set as a global variable

iconID = setInterval(function() { doSomething(num) },0);

is it possible to set a custom object to run a timer with it's own 'iconID' variable , because what I have now, if one object sets off the timer while another one is already running they mess each other up because the iconID is now specific to the more previous object