strongloop/loopback-datasource-juggler — pull request #165 by raymondfeng (2014-07-08 17:57:58+00:00)
Title: Pass callback to hooks so that next can be skipped

/to @bajtos
/cc @ritch

See https://groups.google.com/forum/#!topic/loopbackjs/8zcmbxBjYeM

The PR passes the callback func to hooks, for example:

```js
User.beforeCreate = function(next, data, cb) {
// skip next();
cb('Error: invalid email');
};
```