MCPcopy Create free account
hub / github.com/OpenWebCAD/node-occ / intercept

Function intercept

JasmineAdapter-1.1.2.js:140–148  ·  view source on GitHub ↗
(method)

Source from the content-addressed store, hash-verified

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) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected