Commit 1d36e7ba by Alexander Kryklia

now we invoke gst consturctor as callback to javascript_loader, so dependencies are loaded first

parent fd20496a
...@@ -14,7 +14,9 @@ window.GraphicalSliderTool = function (el) { ...@@ -14,7 +14,9 @@ window.GraphicalSliderTool = function (el) {
// with a unique DOM ID), we will iterate over all children, and for // with a unique DOM ID), we will iterate over all children, and for
// each match, we will call GstMain module. // each match, we will call GstMain module.
$(el).children('.graphical_slider_tool').each(function (index, value) { $(el).children('.graphical_slider_tool').each(function (index, value) {
GstMain($(value).attr('id')); JavascriptLoader.executeModuleScripts($(value), function(){
GstMain($(value).attr('id'));
});
}); });
}); });
}; };
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