MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / imageOnLoad

Function imageOnLoad

libs/echarts/echarts-en.simple.js:7566–7577  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7564}
7565
7566function imageOnLoad() {
7567 var cachedImgObj = this.__cachedImgObj;
7568 this.onload = this.onerror = this.__cachedImgObj = null;
7569
7570 for (var i = 0; i < cachedImgObj.pending.length; i++) {
7571 var pendingWrap = cachedImgObj.pending[i];
7572 var cb = pendingWrap.cb;
7573 cb && cb(this, pendingWrap.cbPayload);
7574 pendingWrap.hostEl.dirty();
7575 }
7576 cachedImgObj.pending.length = 0;
7577}
7578
7579function isImageReady(image) {
7580 return image && image.width && image.height;

Callers

nothing calls this directly

Calls 1

cbFunction · 0.70

Tested by

no test coverage detected