Mercurial > irccd
view tests/src/libirccd-js/jsapi-timer/timer.js @ 680:900ca2f95838
Irccd: do not allow multiple server with same name
author | David Demelier <markand@malikania.fr> |
---|---|
date | Thu, 12 Apr 2018 20:45:02 +0200 |
parents | 9fbd1700435b |
children |
line wrap: on
line source
count = 0; function onLoad() { if (typeof (type) === "undefined") throw Error("global timer type not defined"); t = new Irccd.Timer(type, 50, function () { count += 1; }); t.start(); }