I want to implement MVC pattern in JavaScript, but I have a problem with Controller implementation.
MVC concepts are clear to me. I understand how MVC works. I don't think that events is appropriate way build a Controller. And there are a lot of dependences because of edition of the event in JavaScript. I would like to see some small example of implementation of MVC Controller in JavaScript.
p.s. I want to implement MVC pattern by using only JavaScript, but I don't want to use any MVC open-source frameworks.
p.s. I don't want you to do my homework, but I really don't understand how to imprelent Controller in JavaScript.