summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/longpolling.julius7
1 files changed, 3 insertions, 4 deletions
diff --git a/templates/longpolling.julius b/templates/longpolling.julius
index 520699cd7..67fe059cf 100644
--- a/templates/longpolling.julius
+++ b/templates/longpolling.julius
@@ -1,10 +1,9 @@
-// longpolling for #{ident}
-function poller#{ident}() {
+function longpoll_#{ident}() {
longpoll('@{gethtml}', '#{ident}'
- , function() { setTimeout(poller#{ident}, #{delay}); }
+ , function() { setTimeout(longpoll_#{ident}, #{delay}); }
, function() { webapp_disconnected(); }
);
}
$(function() {
- setTimeout(poller#{ident}, #{startdelay});
+ setTimeout(longpoll_#{ident}, #{startdelay});
});