()
| 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); |
nothing calls this directly
no test coverage detected