You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Henrik Vendelbo edited this page Oct 10, 2013
·
6 revisions
In small examples of input elements each element can act on its own without much trouble. In more complex examples you need central coordination. The controller part of the MVC pattern is meant for this. The MVC pattern is for another era of programming and trying to implement it properly in a web browser will gain you little good and lots of pain.
Enhanced element handlers can define an instance for the element. You are free to create any object you like so this can be a controller. To mark it as one set controller to true in the data-role.