(index)
| 152 | $(".up").each(function () { |
| 153 | var that = this; |
| 154 | var f = function (index) { |
| 155 | $(that).trigger("click"); |
| 156 | $(that).trigger("mousedown"); |
| 157 | setTimeout(function () { |
| 158 | if (q[index]) { |
| 159 | q[index](index + 1); |
| 160 | } else { |
| 161 | if (upVoteTimer) { |
| 162 | window.clearTimeout(upVoteTimer); |
| 163 | } |
| 164 | } |
| 165 | }, 500); |
| 166 | }; |
| 167 | q.push(f); |
| 168 | }); |
| 169 | var upVoteTimer = window.setTimeout(function () { |
no test coverage detected