developmentseed / developmentseed/bones
Bones augment method is not working correctly
Open
- Dominant language
- JavaScript
- Stars
- 481
- Forks
- 39
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.