(a)
| 111 | } |
| 112 | |
| 113 | function callback(a) { |
| 114 | if (type == 'watch') { |
| 115 | $counter.html(addCommas(a.watchers)); |
| 116 | } else { |
| 117 | if (type == 'fork') { |
| 118 | $counter.html(addCommas(a.forks)); |
| 119 | } else { |
| 120 | if (type == 'follow') { |
| 121 | $counter.html(addCommas(a.followers)); |
| 122 | } |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | if (count) { |
| 127 | $counter.css('display', 'inline-block'); |
| 128 | } |
| 129 | } |
| 130 | |
| 131 | function jsonp(url) { |
| 132 | var ctx = caches[url] || {}; |
no test coverage detected