bones
bones copied to clipboard
Bones augment method is not working correctly
Taking a look at the example code, I noticed a flaw in the augment method.
If I debug the client model's 'sync' method, I get the arguments in the correct order:
method, model, options
If I augment the 'sync' method for the server version, I get an extra function as the first parameter (which was caused by '_.wrap'), rearranging the method signature, and leading to unexpected results:
func, method, model, options