Skip to content
Browse files

updates

  • Loading branch information...
1 parent 1bcb249 commit 84e3eed875deda180e0d6e1b190c72112811fa8b @ianb committed May 15, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 example-error.html
View
4 example-error.html
@@ -16,6 +16,7 @@
var req = new XMLHttpRequest();
req.open('GET', '/');
req.onreadystatechange = function () {
+ console.log('In onreadystatechange');
throw 'onreadystatechange error';
};
req.send();
@@ -24,11 +25,12 @@
function tryError4() {
var req = navigator.mozApps.getSelf();
req.onsuccess = function () {
+ console.log('In onsuccess');
throw 'getSelf.onsuccess error';
};
}
</script>
</head>
<body>
- To run this example, open the web console and run either <code>tryError1()</code> (simple error, should work), <code>tryError2()</code> (error in setTimeout function) or <code>tryError3()</code> (error in XMLHttpRequest onreadystatechange).
+ To run this example, open the web console and run either <code>tryError1()</code> (simple error, should work), <code>tryError2()</code> (error in setTimeout function) or <code>tryError3()</code> (error in XMLHttpRequest onreadystatechange) or <code>tryError4()</code> (error in navigator.mozApps.getSelf().onsuccess).
</body></html>

0 comments on commit 84e3eed

Please sign in to comment.
Something went wrong with that request. Please try again.