developmentseed / developmentseed/bones

Bones augment method is not working correctly

Open
#23 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.