In many examples I am seeing code that looks like this :
Code: Select all
var.SomeNameHere = function(param1, param2, param3) {
//some stuff done here
}Also, I see a variable being defined like this :
Code: Select all
var.SomeNameHere.extension = {
loadData: function {
//if statements and other stuff done
}
}If anyone can post me a few links that would explain this I would be very grateful. I have searched google for "Create function" but none of the tutorials show this. Only example code seems to have this in it. Thanks