icecats11 / js-hotkeys

Automatically exported from code.google.com/p/js-hotkeys
0 stars 0 forks source link

Getting errors when event.target was anchor #13

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Needed to add the following line to avoid errors when event.target was an
anchor (or anything besides the HTML element)

if(!that.all || !that.all[element]) {return};

Just before this line:

var cbMap = that.all[element].events[type].callbackMap;

Original issue reported on code.google.com by richhen...@gmail.com on 31 Jan 2008 at 8:05

GoogleCodeExporter commented 8 years ago

Original comment by Afro.Sys...@gmail.com on 24 Aug 2008 at 8:47