vufind-org/vufind — pull request #201 by crhallberg (2014-09-03 18:40:52+00:00)
Title: JS Objects and Events

This is a project I started to see how much the code could be simplified by converting other js files into objects like the new Lightbox. I've updated Lightbox to broadcast events (to be picked up by browser-native event handlers) and I've converted cart.js into Cart, the object.

I had to share because I have a crazy bias that performance increased. I'd like to know what you all think.

Outstanding Design Challenges:
- Lightbox.addFormHander and Lightbox.addFormCallback
- Other files that can be objectified?
- Testing