Please have few sec patience. js beginner. Thnx. I am playing with boilerplate https://github.com/jquery-boilerplate/jquery-boilerplate/blob/master/src/jquery.boilerplate.js
inside of it I added 2 new functions
init: function () {
this.mynewFunction2();
},
mynewFunction1: function (){
console.log('ok');
},
mynewFunction2: function (){
$('.link').click(function(){
this.mynewFunction1();
});
}
you probably already see the problem but the question is how do I pass my mynewFunction1 to jquery object ? I did find few posts where they say that I need to assign my new function in order to be called inside jquery object but I am bit lost there. So if you have a spare minute could you please post an example based on my code above. Thank you!