MCPcopy
hub / github.com/apache/echarts / addMethod

Function addMethod

test/lib/canteen.js:239–244  ·  view source on GitHub ↗
(key, val)

Source from the content-addressed store, hash-verified

237 key, val, desc;
238
239 function addMethod(key, val) {
240 Canteen.prototype[key] = function() {
241 this._pushMethod(key, arguments);
242 return this.context[key].apply(this.context, arguments);
243 };
244 }
245
246 for (key in proto) {
247 desc = Object.getOwnPropertyDescriptor(CanvasRenderingContext2D.prototype, key);

Callers 1

canteen.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…