on scene selection OK + keyframe model
This commit is contained in:
1 parent
6931a777a2
commit
4e1f6886f2
23 files changed
+2107
-64
No files matched your search
@@ -126,8 +126,8 @@ class Controller {
|
||||
static processTemplate(name, html, templateData) {
|
||||
|
||||
// Define a function inside of which templateData keys will become local variables
|
||||
// AND where templateData values will become thos variable values ;-)
|
||||
// Drawback is that complex epression
|
||||
// AND where templateData values will become those variable values ;-)
|
||||
// Drawback is that complex expression
|
||||
function evalaluateTemplate(tpl, params) {
|
||||
var interpretor = Function(...Object.keys(params), 'return('+tpl+');' );
|
||||
return interpretor(...Object.values(params));
|
||||
@@ -163,7 +163,7 @@ class Controller {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
// Now that all remaining expressions are OK, evaluate the template via backtits !
|
||||
return(evalaluateTemplate('`' + html + '`', templateData));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user