MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / inherits

Function inherits

libs/echarts/echarts.simple.js:483–496  ·  view source on GitHub ↗

* 构造类继承关系 * * @memberOf module:zrender/core/util * @param {Function} clazz 源类 * @param {Function} baseClazz 基类

(clazz, baseClazz)

Source from the content-addressed store, hash-verified

481 * @param {Function} baseClazz 基类
482 */
483function inherits(clazz, baseClazz) {
484 var clazzPrototype = clazz.prototype;
485 function F() {}
486 F.prototype = baseClazz.prototype;
487 clazz.prototype = new F();
488
489 for (var prop in clazzPrototype) {
490 if (clazzPrototype.hasOwnProperty(prop)) {
491 clazz.prototype[prop] = clazzPrototype[prop];
492 }
493 }
494 clazz.prototype.constructor = clazz;
495 clazz.superClass = baseClazz;
496}
497
498/**
499 * @memberOf module:zrender/core/util

Callers 2

echarts.simple.jsFile · 0.70
enableClassExtendFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected