MCPcopy
hub / github.com/winjs/winjs / waitForReady_handler

Function waitForReady_handler

tests/TestLib/Helper.ListView.ts:147–153  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

145 return function (x?): WinJS.Promise<any> {
146 return new WinJS.Promise(function (c, e, p) {
147 function waitForReady_handler() {
148 LiveUnit.LoggingCore.logComment("waitForReady_handler, listView.loadingState:" + listView.loadingState);
149 if (listView.loadingState === "complete") {
150 listView.removeEventListener("loadingstatechanged", waitForReady_handler, false);
151 waitForReady_work();
152 }
153 }
154
155 function waitForReady_work() {
156 if (listView._versionManager.locked) {

Callers

nothing calls this directly

Calls 2

waitForReady_workFunction · 0.70
removeEventListenerMethod · 0.65

Tested by

no test coverage detected