Instead, you can put an additional argument in the data attribute on an element that you can click; something like that:
<a id="top-all" data-pancakes="1">
And then topProducts can understand for itself:
topProducts: function(ev) { var pancakes = $(ev.currentTarget).data('pancakes');
mu is too short Oct 19 '11 at 17:54 2011-10-19 17:54
source share