Demo cleanup/enhance

This commit is contained in:
Ryan McGrath 2011-07-10 04:20:37 -04:00
parent 95e7b6644c
commit 58b2a0075f
3 changed files with 3 additions and 3 deletions

View file

@ -156,7 +156,7 @@ Wii.parsePrimaryWiimote = function(e) {
* matchups; this gets messy pretty quickly...
*/
if(typeof buttonPressed !== 'undefined' && wii_remote.evtsInterestedIn[buttonPressed] !== 'undefined') {
try { wii_remote.evtsInterestedIn[buttonPressed](wii_remote, wii_remoteCurrStatus); } catch(e) { alert(e.message); }
try { wii_remote.evtsInterestedIn[buttonPressed](wii_remote, wii_remoteCurrStatus); } catch(e) { alert(e.message); alert(Wii.currentBrowsingRemote); }
}
/* Doing this in conjunction with preventDefault() halts an odd clicking bug or two. */