summaryrefslogtreecommitdiffstats
path: root/static
diff options
context:
space:
mode:
authorraylu <raylu@mixpanel.com>2011-08-09 00:35:14 -0700
committerraylu <raylu@mixpanel.com>2011-08-09 00:35:14 -0700
commitca337013d77a8f4cd8f799ec3aaa88e6edc94df7 (patch)
tree71e5e73b70bcb3089686216b51a72494d1c80857 /static
parentdbf2f53eb6a3d0c49bd7585d8e9547dc8c57c95c (diff)
downloadaudioaxis-ca337013d77a8f4cd8f799ec3aaa88e6edc94df7.tar.xz
remove poller (1cae243)
Diffstat (limited to 'static')
-rw-r--r--static/poller.js32
1 files changed, 0 insertions, 32 deletions
diff --git a/static/poller.js b/static/poller.js
deleted file mode 100644
index edb554e..0000000
--- a/static/poller.js
+++ /dev/null
@@ -1,32 +0,0 @@
-importScripts('/static/jquery.hive.pollen.min.js');
-
-var pid;
-var timestamp = '0';
-
-function getUpdates() {
- $.ajax.get({
- url: '/poll/',
- dataType: 'json',
- data: {pid: pid, timestamp: timestamp},
- success: handleUpdates
- });
-}
-function handleUpdates(data) {
- var updates = [];
- for (var i = 0; i < data.length; i++) {
- updates.push({
- 'action': data[i].Action,
- 'yid': data[i].Song.Yid,
- 'title': data[i].Song.Title,
- 'user': data[i].Song.User
- });
- timestamp = data[i].Timestamp;
- }
- $.send({updates: updates});
- getUpdates();
-}
-
-$(function (data) {
- pid = data.pid;
- getUpdates();
-});