(id)
| 123 | ); |
| 124 | |
| 125 | function _resolver(id) { |
| 126 | return when.promise(function(resolve, reject, notify) { |
| 127 | var loop = 0; |
| 128 | var timer = setInterval(function () { |
| 129 | notify(id); |
| 130 | loop++; |
| 131 | if (loop === 2) { |
| 132 | clearInterval(timer); |
| 133 | resolve(id); |
| 134 | } |
| 135 | }, 1); |
| 136 | }); |
| 137 | } |
| 138 | } |
| 139 | }); |
no test coverage detected
searching dependent graphs…