Meanwhile, here's a place to start: https://github.com/jashkenas/backbone/blob/master/backbone.js#L214-L226