Maybe I am missing something, but I can't figure out how can I call one of the methods of the Listviewclass from the click callback.
Here's the code:
function Listview(el, cb) {
    this.element = el;
    this.callback = cb;
    this.select = function (element, index) {
        ...
    };
    this.selectElement = function (element) {
        ...
    };
    this.unselectCurrentElement = function () {
        ...
    };
    this.element.find('li').click(function () {
        // Here I want to call for example the selectElement method
        // but how? 
        // The This keyword reference the "li" element
    });
    this.element.addClass("Listview");
    this.select(this.element, 0);
};
 
    