Skip to content

Instantly share code, notes, and snippets.

@thomasJang
Created August 23, 2015 14:54
Show Gist options
  • Save thomasJang/b38bda9979acc452dea5 to your computer and use it in GitHub Desktop.
Save thomasJang/b38bda9979acc452dea5 to your computer and use it in GitHub Desktop.
axisj get_event_target
e = e || window.event;
var target = axf.get_event_target(e.target, function(el){
if(axdom(el).hasClass("AXTag-selector-tagitem-remove")){
event_type = "remove";
return true;
}
else
if(axdom(el).hasClass("AXTag-selector-tagitem")){
event_type = "item";
return true;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment