1
0
Fork 0

ltgloader-demo will now alert the user on all uncaught exceptions

master
Mike Gerwitz 2012-03-16 19:14:11 -04:00
parent 17d8dbe0fc
commit 85426b9ab7
1 changed files with 3 additions and 0 deletions

View File

@ -62,6 +62,9 @@
window.Class = easejs.Class;
window.Interface = easejs.Interface;
// alert the user on all uncaught errors
window.onerror = alert;
var ctx = document.getElementById( 'canvas' ).getContext( '2d' ),
ctxmap = document.getElementById( 'canvas_map' ).getContext( '2d' ),
ltg = document.getElementById( 'ltg' ),