3 ms·
Hey -- it's great to have the discussion. You describe a "nice abstraction on top of jQuery event bindings"... I'd be very curious to know, without any particul
by jashkenas 15y ago
Hey -- it's great to have the discussion. You describe a "nice abstraction on top of jQuery event bindings"... I'd be very curious to know, without any particular implementation in mind, what would you consider to be an ideal API to work with in JavaScript, to control these pieces of HTML UI? Do you have any (pseudo)code you could share?
- jonmc12 15y agoI created a quick doc to describe some of my ideals: http://jonmc12.github.com/BackboneIdeals/ http://jonmc12.github.com/BackboneIdeals/ - very quick obviously.. but I think it gets main points across: 1. A conceptual model that describes the input / output between DOM and user. 2. More explicit enumerations of event bindings 3. Explicit link between user interactions/events and constrained DOM manipulation - to match conceptual model. 4. Defining all viewable elements in HTML templates 5. Round-trip syncing between HTML and data models Let me know if you think inputs are interesting or would want any more detail around concepts.