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

This commit is contained in:
Alexander Kryklia
2013-01-17 14:21:52 +02:00
parent fd20496a60
commit 1d36e7baf9

View File

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