Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Special section "DEFAULT" #1
You're right, I had not thought about saving. What do you think about modifying getBlock and getParam instead ?
PS : sorry for my poor English, it's not my natural language.
I did some changes. The getBlock became deprecated, basically it did the same as getParam but now it does it fully.
So, you should put the stuff into the getParam method, but I would suggest to use a config parameter (like async) instead of passing another argument the function. The reason is why I suggest it is because if we don't do this, it would make the param method more complicated. You would need to add another parameter to it which would be useless in setParam.
What do you think?
Looks really cool. :)
Check out what happens, if you add a test case like this:
assert.deepEqual(obj.param().foo.test_default, 'I come from the default section',