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

Method eachChild

src/common/overlay/levelRenderer/Group.js:184–194  ·  view source on GitHub ↗

* @function LevelRenderer.Group.prototype.eachChild * @description 遍历所有子节点。 * @param {function} cb - 回调函数。 * @param {Object} context - 上下文。

(cb, context)

Source from the content-addressed store, hash-verified

182 * @param {Object} context - 上下文。
183 */
184 eachChild(cb, context) {
185 var haveContext = !!context;
186 for (var i = 0; i < this._children.length; i++) {
187 var child = this._children[i];
188 if (haveContext) {
189 cb.call(context, child);
190 } else {
191 cb(child);
192 }
193 }
194 }
195
196
197 /**

Callers 15

GroupSpec.jsFile · 0.80
mapbox-gl.jsFile · 0.80
LeFunction · 0.80
OeFunction · 0.80
ReFunction · 0.80
vrFunction · 0.80
HrFunction · 0.80
oFunction · 0.80
flFunction · 0.80
auFunction · 0.80

Calls 1

cbFunction · 0.50

Tested by

no test coverage detected