Robert Mosolgo

Event Handlers in Batman.js

In batman.js, event handlers respond to user interactions like “click” and “submit”. You can use them to modify application state in response to those interactions.

Model Transactions in Batman.js

Model::transaction provides a deep-copied, “shadow-realm” version of a record which is great for rendering into edit forms. Any changes made to it can be saved (which updates the original record too), or just forgotten.

Batman.js Accessors as Methods

Batman.js is a CoffeeScript front-end MVC framework. One of its core features is accessors, which can be used like properties or methods of a Batman.Object. They can even take arguments!