bones icon indicating copy to clipboard operation
bones copied to clipboard

Bones augment method is not working correctly

Open Morriz opened this issue 14 years ago • 0 comments

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

Morriz avatar Jul 30 '11 12:07 Morriz