You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reactive should be able interpolate functions.
The above suite tests <div>{ ret("foo") }</div> when ret is defined in the model or the view.
Only this.ret seems to work.
//add this to function callexpr=expr.replace(/([^\.]|^)\b[0-9a-zA-Z_$]+?\(/g,function(_,s){if(s.length===0){return'this.'+_;}else{return_[0]+'this.'+_.slice(1);}})
Reactive should be able interpolate functions.
The above suite tests
<div>{ ret("foo") }</div>
whenret
is defined in the model or the view.Only
this.ret
seems to work.Here I'm testing ways to declare the function:
fn: String -> String
fn: -> (String -> String)
(see lib/index.js#L140, lib/adapter.js#L81)Tests
Result
The last 4 tests raise an error:
The text was updated successfully, but these errors were encountered: