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

Method inherits

src/common/overlay/levelRenderer/Util.js:271–284  ·  view source on GitHub ↗

* @function LevelRenderer.Tool.Util.prototype.inherits * @description 构造类继承关系 * * @param {function} clazz - 源类。 * @param {function} baseClazz - 基类。 * @return {Object} 偏移量。

(clazz, baseClazz)

Source from the content-addressed store, hash-verified

269 * @return {Object} 偏移量。
270 */
271 inherits(clazz, baseClazz) {
272 var clazzPrototype = clazz.prototype;
273
274 function F() {
275 }
276
277 F.prototype = baseClazz.prototype;
278 clazz.prototype = new F();
279
280 for (var prop in clazzPrototype) {
281 clazz.prototype[prop] = clazzPrototype[prop];
282 }
283 clazz.constructor = clazz;
284 }
285}

Callers 1

UtilSpec.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected