From 85426b9ab7ecc2bd4162f6b9da2347faf9599600 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Fri, 16 Mar 2012 19:14:11 -0400 Subject: [PATCH] ltgloader-demo will now alert the user on all uncaught exceptions --- test/ltgloader-demo.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/ltgloader-demo.html b/test/ltgloader-demo.html index e9b5907..2152c0e 100644 --- a/test/ltgloader-demo.html +++ b/test/ltgloader-demo.html @@ -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' ),