flatiron/resourceful — Issue #50: Support synchronous hooks
Author: indexzero
Created: 2012-02-07 02:08:04+00:00
State: open

Currently all hooks get passed a callback which is necessary to support async hooks. Many use cases however, synchronous hooks would be useful.

This should work, but doesn't

``` js
MyResource.on('get', function (_, obj) {
// Do something
return true;
});
```