events: { 'click a': 'onPresetClick', 'keydown a': 'keyAction' }, keyAction: function(e) { var code = e.keyCode || e.which; if(code == 13) { var id = $(e.currentTarget).attr('data-preset-id'); this.$items.removeClass('active'); $(e.currentTarget).addClass('active'); dispatcher.trigger(dispatcher.EventKeys.PRESET_SELECTED, presets[id]); } },
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)