I have inverted the execution order of the overwritten `add` method https://gist.github.com/hatched/84a65398d22fc3753ef6 which now allows us to listen to the actual 'add' event.

Also, the script you were using to add machines was slightly incorrect. `machines` is a LazyModelList which deals with objects not models so a modified snippit is:

`models = yui.namespace('juju.models'); newId = Math.floor(Math.random() * 100).toString(); app.db.machines.add({id: newId, displayName: newId, hardware: {disk: 1024, mem: 1024, cpuPower: 1024, cpuCores: 1}});`