(hwd, next)
| 14 | }); |
| 15 | }; |
| 16 | var promise = function(hwd, next) { |
| 17 | return function () { |
| 18 | if (!loading) { |
| 19 | load(); |
| 20 | } |
| 21 | |
| 22 | queue.push({ hwd: hwd, args: arguments }); |
| 23 | |
| 24 | return calls; |
| 25 | }; |
| 26 | }; |
| 27 | var next = function () { |
| 28 | if (queue.length === 0) return; |
| 29 |
no test coverage detected