src/aria/html/controllers/Suggestions.js
function loadResourcesHandler (classpath, self) {
        var Handler = Aria.getClassRef(classpath);

        if (Handler) {
            return new Handler();
        } else {
            var callbackArgs = {
                scope : self,
                classpath : classpath
            };

            Aria.load({
                classes : [classpath],
                oncomplete : {
                    fn : delayLoading,
                    args : callbackArgs
                },
                onerror : {
                    fn : resourcesHandlerError,
                    args : callbackArgs
                }
            });

            return new PromisedHandler();
        }
    }
function loadResourcesHandler (classpath, self) {
        var Handler = Aria.getClassRef(classpath);

        if (Handler) {
            return new Handler();
        } else {
            var callbackArgs = {
                scope : self,
                classpath : classpath
            };

            Aria.load({
                classes : [classpath],
                oncomplete : {
                    fn : delayLoading,
                    args : callbackArgs
                },
                onerror : {
                    fn : resourcesHandlerError,
                    args : callbackArgs
                }
            });

            return new PromisedHandler();
        }
    }
function loadResourcesHandler ( classpath , self ) { var Handler = Aria . getClassRef ( classpath ) ; if ( Handler ) { return new Handler ( ) ; } else { var callbackArgs = { scope : self , classpath : classpath } ; Aria . load ( { classes : [ classpath ] , oncomplete : { fn : delayLoading , args : callbackArgs } , onerror : { fn : resourcesHandlerError , args : callbackArgs } } ) ; return new PromisedHandler ( ) ; } }
Load and instantiate the resources handler.
@param {String} classpath Resources Handler classpath
@param {aria.html.controllers.Suggestions} self Suggestions controller instance
@private
Load and instantiate the resources handler .