JSAPI.info

dojo.loadInit

Dojo (1.6.1) - see full source
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
dojo.loadInit = function(/*Function*/init){
    //    summary:
    //        Executes a function that needs to be executed for the loader's dojo.requireIf
    //        resolutions to work. This is needed mostly for the xdomain loader case where
    //        a function needs to be executed to set up the possible values for a dojo.requireIf
    //        call.
    //    init:
    //        a function reference. Executed immediately.
    //    description: This function is mainly a marker for the xdomain loader to know parts of
    //        code that needs be executed outside the function wrappper that is placed around modules.
    //        The init function could be executed more than once, and it should make no assumptions
    //        on what is loaded, or what modules are available. Only the functionality in Dojo Base
    //        is allowed to be used. Avoid using this method. For a valid use case,
    //        see the source for dojox.gfx.
    init();
}