(method)
| 138 | }); |
| 139 | |
| 140 | function intercept(method) { |
| 141 | var bucket = intercepted[method] = [], method = window[method]; |
| 142 | return function(desc, fn) { |
| 143 | if (collectMode) bucket.push(function() { |
| 144 | method(desc, fn); |
| 145 | }); |
| 146 | else method(desc, fn); |
| 147 | }; |
| 148 | } |
| 149 | |
| 150 | function playback() { |
| 151 | for (var method in intercepted) { |
no outgoing calls
no test coverage detected