diff tests/src/libirccd-js/js-api-timer/timer.js @ 773:8c44bbcbbab9

Misc: style, cleanup and update
author David Demelier <markand@malikania.fr>
date Fri, 26 Oct 2018 13:01:00 +0200
parents 445c071e8efb
children
line wrap: on
line diff
--- a/tests/src/libirccd-js/js-api-timer/timer.js	Wed Oct 24 13:24:03 2018 +0200
+++ b/tests/src/libirccd-js/js-api-timer/timer.js	Fri Oct 26 13:01:00 2018 +0200
@@ -2,12 +2,12 @@
 
 function onLoad()
 {
-    if (typeof (type) === "undefined")
-        throw Error("global timer type not defined");
+	if (typeof (type) === "undefined")
+		throw Error("global timer type not defined");
 
-    t = new Irccd.Timer(type, 50, function () {
-        count += 1;
-    });
+	t = new Irccd.Timer(type, 50, function () {
+		count += 1;
+	});
 
-    t.start();
+	t.start();
 }