tildeio/rsvp.js — pull request #183 by teddyzeenny (2013-12-31 02:43:00+00:00)
Title: Add flag to register RSVP.on callbacks

After brainstorming with @stefanpenner:

```javascript

window.__PROMISE_INSTRUMENTATION__ = {

created: function(e) {
// promise was created
},
fulfilled: function(e) {
// promise was fulfilled
}
//...
};
```

This instructs RSVP to set up `RSVP.on` listeners on each of the provided callbacks. That way we ensure that we don't miss any event. We can inject the promise assembler later and collect what was triggered.