Closed akircher closed 8 years ago
From this
function init(ctx) { return function api() { ctx.path } }
into this
function api() { this.ctx.path } return api.bind(ctx)
Not doing this because of http sugar methods http.context, http.get etc would also ALL need to be bound, which is less elegant than the factory method. Just needs a general refactor instead.
From this
into this