Demo cleanup/enhance

This commit is contained in:
Ryan McGrath 2011-07-10 04:30:27 -04:00
parent 584bf2b30c
commit 33e2db1a14
2 changed files with 2 additions and 2 deletions

View file

@ -106,7 +106,7 @@ Wii.listen = function() {
} else {
for(var evt in wii_remote.evtsInterestedIn) {
var evtHappened = Wii.DISPATCHER[evt](wii_remote, wii_remoteCurrStatus);
if(evtHappened) wii_remote.evtsInterestedIn[evt](wii_remote, wii_remoteCurrStatus);
if(evtHappened) try { wii_remote.evtsInterestedIn[evt](wii_remote, wii_remoteCurrStatus); } catch(e) { alert(e.message); }
}
}
}