5 ms·
Looks like you can't pass a function as an argument to any of the functions in a Sugarless chain. Seems like a pretty glaring oversight to me.
by sipefree 15y ago
Looks like you can't pass a function as an argument to any of the functions in a Sugarless chain.
Seems like a pretty glaring oversight to me.
- kbego 15y agoSugarless is something difference from other libraries, I think we can pass any functions into the Sugarless chain as array. Seems this example explain how deal with functions as arguments in the Sugarless chain. https://github.com/laktek/SugarlessJS/blob/master/examples/client/todo_list.html https://github.com/laktek/SugarlessJS/blob/master/examples/c...