Guest User

Untitled

a guest
Dec 11th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1.  
  2. function dostuff() {
  3. var j = document.getElementById("mycontent");
  4. j.innerText = "";
  5. var b = new WindowsRuntimeComponent6.Class1();
  6. var c = b.initializeAsync().done(onStuffComplete, onStuffError);
  7. }
  8.  
  9. function onStuffComplete() {
  10. var j = document.getElementById("mycontent");
  11. j.innerText = "the function completed";
  12. }
  13.  
  14. function onStuffError() {
  15. var j = document.getElementById("mycontent");
  16. j.innerText = "the function had an error";
  17. }
Add Comment
Please, Sign In to add comment