Make get_or_create_one function handle different numbers of callback arguments

Registered by Tim Black

// TODO: But in this case, the callback takes two arguments. How can
// we handle different numbers of callback arguments?

Maybe by making the callback arg be an object or list that is parsed. This seems to be the best solution. Or does JavaScript naturally ignore missing arguments? Or try parsing the argument list from inside the function, if JavaScript allows functions to be passed args that are not listed in the function definition.

Blueprint information

Status:
Complete
Approver:
None
Priority:
Undefined
Drafter:
None
Direction:
Approved
Assignee:
None
Definition:
Approved
Series goal:
Accepted for couchapp-backbone
Implementation:
Implemented
Milestone target:
None
Started by
Tim Black
Completed by
Tim Black

Related branches

Sprints

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.