All Downloads are FREE. Search and download functionalities are using the official Maven repository.

archetype-resources.src.main.js.model.HelloWorldCommand.js Maven / Gradle / Ivy

Go to download

A JavaScript Rich Internet Application template using jQuery and jQuery UI.

The newest version!
/*global define*/

define( [] ,function() {
    
    /**
     * Command object to retrieve the 'Hello World' text.
     * 
     * @class Command object to retrieve the 'Hello World' text.
     * @name HelloWorldCommand
     */
    function HelloWorldCommand() {
    }

    /**
     * Execute this command and then call the supplied success or
     * failure callback as appropriate.
     * 
     * @param success Callback function for a successful execution.
     * @param failure Callback function for a failed execution.
     */
    HelloWorldCommand.prototype.execute = function(success, failure) {
        success("Hello World");
    };
    
    // Return the function
    return HelloWorldCommand;
  
});




© 2015 - 2024 Weber Informatics LLC | Privacy Policy