MCPcopy
hub / github.com/csev/py4e / deprecate

Function deprecate

code/gmane/Chart.bundle.js:2337–2347  ·  view source on GitHub ↗
(msg, fn)

Source from the content-addressed store, hash-verified

2335 }
2336
2337 function deprecate(msg, fn) {
2338 var firstTime = true;
2339
2340 return extend(function () {
2341 if (firstTime) {
2342 warn(msg + '\n' + (new Error()).stack);
2343 firstTime = false;
2344 }
2345 return fn.apply(this, arguments);
2346 }, fn);
2347 }
2348
2349 var deprecations = {};
2350

Callers 1

Chart.bundle.jsFile · 0.85

Calls 2

warnFunction · 0.85
extendFunction · 0.70

Tested by

no test coverage detected