I have event and function pairs like this ..
events : {
'click #category' : 'categoryList',
}
My function needs argument result set to be passed in .
categoryList: function(rs){
this.modelmaker(rs);
var array = JSON.parse('['+ arraymodels +']');
makeList(array,'ProdCat',function(html){$("#listofstuffs").append(html);});
alert(collection.length);
},
if i try to give categorylist(rs) as function value in event function pair it says function is not defined .!
there should be some questions already explaining about this kind of trivial doubts but i don't even know the apt keywords to search for. every example i see in event binding ; i find no argument passed. some one Please help me out.