Open tarikjn opened 8 years ago
Seems reasonable. Would you be into PRing a solution to this with a test?
Thanks!
In my project i try do the similar thing. I create Jed object in intermediate module and export function are tied to the object.
This functions in library may be ok with simple project, but i think that bindings will be made in user's code to control state of Jed object explicitly.
Currently one cannot do:
As this would return:
However it seem fairly important to be able to shorten notations for views/renders with a lot of strings and for clarity of context.
Would it make sense to add a property accessor that would return an object listing those method as bound vs. call? This would also allow destructuring to get the needed methods.