{:uriI"file:///Users/kirillplatonov/Projects/resque-web/app/assets/javascripts/resque_web/polling.js.coffee?type=application/javascript&pipeline=self&id=cb2764432897d0b8b9432cc3fec96e6dfb5a1a6c6f4f7e67929d92adc8876102:ET:load_pathI"E/Users/kirillplatonov/Projects/resque-web/app/assets/javascripts;T: filenameI"b/Users/kirillplatonov/Projects/resque-web/app/assets/javascripts/resque_web/polling.js.coffee;T: nameI"resque_web/polling;T:logical_pathI"resque_web/polling.self.js;T:content_typeI"application/javascript;T: sourceI"3(function() { jQuery(function() { var poll_interval, poll_start; poll_interval = 2; poll_start = function(el) { var href; href = el.attr("href"); el.parent().text("Starting..."); $("#main").addClass("polling"); setInterval((function() { return $.ajax({ dataType: "text", type: "get", url: href, success: function(data) { $("#main").html(data); return $("#main .time").relativeDate(); } }); }), poll_interval * 1000); return location.hash = "#poll"; }; if (location.hash === "#poll") { poll_start($("a[rel=poll]")); } return $("a[rel=poll]").click(function(e) { e.preventDefault(); return poll_start($(this)); }); }); }).call(this); ;T: metadata{ :dependencieso:Set: @hash{ I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTI"pfile-digest:///Users/kirillplatonov/Projects/resque-web/app/assets/javascripts/resque_web/polling.js.coffee;TT: requiredo;;{: stubbedo;;{: linkso;;{: charsetI" utf-8;F: digest"%P.v$wm4n^~#4d`Hu: lengthi3:dependencies_digest"%OkH{9tS@9vOI$+HM:idI"Ecb2764432897d0b8b9432cc3fec96e6dfb5a1a6c6f4f7e67929d92adc8876102;F: mtimel+gX