MCPcopy
hub / github.com/winjs/winjs / waitForNotReady_handler

Function waitForNotReady_handler

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

Source from the content-addressed store, hash-verified

238 return function (x) {
239 return new WinJS.Promise(function (c, e, p) {
240 function waitForNotReady_handler() {
241 if (listView.loadingState !== 'complete') {
242 listView.removeEventListener('loadingstatechanged', waitForNotReady_handler);
243 c(x);
244 }
245 }
246
247 if (listView.loadingState === 'complete') {
248 listView.addEventListener('loadingstatechanged', waitForNotReady_handler);

Callers

nothing calls this directly

Calls 1

removeEventListenerMethod · 0.65

Tested by

no test coverage detected