Last active
December 28, 2015 15:49
-
-
Save kadukf/7524695 to your computer and use it in GitHub Desktop.
using WinJS._Signal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var loadedSignal = new WinJS._Signal(); | |
document.addEventListener("load", function () { loadedSignal.complete(); }); | |
function loadDataAsync() { | |
return WinJS.xhr("uri"); | |
} | |
//setup code | |
loadedSignal.promise | |
.then(loadDataAsync) | |
.then(processData); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment