MCPcopy Index your code
hub / github.com/winjs/winjs / waitForItemsLoaded

Function waitForItemsLoaded

tests/ListViewComponents/VirtualizeContentsViewTest.ts:411–422  ·  view source on GitHub ↗
(listView)

Source from the content-addressed store, hash-verified

409 }
410
411 function waitForItemsLoaded(listView) {
412 return new WinJS.Promise(function (complete) {
413 function handler() {
414 if (listView.loadingState === "itemsLoaded") {
415 listView.removeEventListener("loadingstatechanged", handler, false);
416 complete();
417 }
418 }
419
420 listView.addEventListener("loadingstatechanged", handler, false);
421 });
422 }
423
424 function generateAnimationInViewportPendingFlagTest(complete, firstIndexToInsert, expectedValue) {
425 WinJS.UI._VirtualizeContentsView._disableCustomPagesPrefetch = true;

Callers 1

Calls 1

addEventListenerMethod · 0.65

Tested by

no test coverage detected