Commit d3045b36 by Alexander Kryklia

initial function call added, fix

parent fc09bbd0
...@@ -123,6 +123,7 @@ define('ElOutput', ['logme'], function (logme) { ...@@ -123,6 +123,7 @@ define('ElOutput', ['logme'], function (logme) {
el.html(func.apply(window, state.getAllParameterValues())); el.html(func.apply(window, state.getAllParameterValues()));
} else { } else {
el = null; el = null;
func.apply(window, state.getAllParameterValues());
} }
state.addDynamicEl(el, func, obj['@el_id'], updateOnEvent); state.addDynamicEl(el, func, obj['@el_id'], updateOnEvent);
......
...@@ -239,6 +239,7 @@ define('State', ['logme'], function (logme) { ...@@ -239,6 +239,7 @@ define('State', ['logme'], function (logme) {
for (c1 = 0; c1 < dynamicEl.length; c1++) { for (c1 = 0; c1 < dynamicEl.length; c1++) {
if (dynamicEl[c1].el === null) { if (dynamicEl[c1].el === null) {
dynamicEl[c1].func.apply(window, allParameterValues); dynamicEl[c1].func.apply(window, allParameterValues);
continue;
} }
if ( if (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment