what is "depends" for in RegisterFooterScript

Nov 17, 2014 at 10:26 PM
the following function is in BaseMvcPlugin. depends isn't being used for anything. What is the envisioned usage for this argument?
/// <summary>
        /// Called by child classes that want to register a footer JavaScript file to be placed at the bottom of the page, after all the main content in body.
        /// </summary>
        /// <param name="name"></param>
        /// <param name="url"></param>
        /// <param name="depends"></param>
        protected void RegisterFooterScript(string name, string url, IEnumerable<string> depends)
            FooterJavaScript.Add(new SiteResource() { IsAssemblyResource = true, LocalUrl = calcBaseLocationName() + url });
Dec 29, 2014 at 12:13 PM
It is intended to help order dependency on scripts. If a plugin's script depends on other scripts to work properly, it should include the list of script ids needed. This is similar to how wordpress manages the same issue. I have yet to actually code the implementation of that though.