In the view definition I had:
...
...
// events
,events: {
'click ': 'selectServiceEvent',
'click a': 'learnMoreLinkEvent'
}
...
...
,selectServiceEvent: function () {
this.clickCard();
}
But when I was clicking the div generated by de view, the selectServiceEvent function was being triggered twice. The solution was add return false; to the selectServiceEvent function:
,selectServiceEvent: function () {
this.clickCard();
return false;
}
...
...
// events
,events: {
'click ': 'selectServiceEvent',
'click a': 'learnMoreLinkEvent'
}
...
...
,selectServiceEvent: function () {
this.clickCard();
}
But when I was clicking the div generated by de view, the selectServiceEvent function was being triggered twice. The solution was add return false; to the selectServiceEvent function:
,selectServiceEvent: function () {
this.clickCard();
return false;
}