a jQuery plugin like this:
var methods = {
init: function(options) {
$("#something").click(function() {
//call method show
});
},
show: function() {
//show something around here.
}
}
..
how can i call the method show inside the method init
You could use
proxy(), which is likebind()only it doesn’t need a shim for where it’s not supported…