Skip to content

Instantly share code, notes, and snippets.

@moduscreate
Created July 10, 2012 14:52
Show Gist options
  • Select an option

  • Save moduscreate/3083789 to your computer and use it in GitHub Desktop.

Select an option

Save moduscreate/3083789 to your computer and use it in GitHub Desktop.
onIssueTap : function(evtObj) {
var isIssueImage = evtObj.getTarget('.recent-issue-image'),
isButton = evtObj.getTarget('.buy-now-button'),
data = evtObj.delegatedTarget.dataset['id'],
event;
if (isIssueImage) {
event = 'issueTap';
}
else if (isButton) {
event = 'buyIssue';
}
event && this.fireEvent(event, data);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment