MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / waitImg

Function waitImg

vm/ByteCodeTranslator/src/javascript/browser_bridge.js:1921–1924  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1919 if (img && !(img.complete && img.naturalWidth > 0)) {
1920 var tries = 0;
1921 var waitImg = function() {
1922 if ((img.complete && img.naturalWidth > 0) || tries++ > 100) { doPrint(); }
1923 else { setTimeout(waitImg, 20); }
1924 };
1925 waitImg();
1926 return;
1927 }

Callers 1

browser_bridge.jsFile · 0.85

Calls 1

doPrintFunction · 0.85

Tested by

no test coverage detected