So, abstract class Controller is responsible for connecting all JS-files. This class uses function js_files for buffering:
public $js_files = array();
To manage js-buffer it uses the following methods:
removeJS($js_uri) – deletes js-file in page header;
addJquery($version = null, $folder = null, $minifier = true) – adds jQuery-library. You can mention the version. If you need to load minimized version, mention that too.
addJqueryUI($component, $theme = ‘base’, $check_dependencies = true) – ability to connect jQuery UI – component. Components will upload from folder js/jquery/ui: (more…)