Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Phobos simple application (See related posts)

Phobos simple application script

/*
 * Application module. It contains functions that can be used
 * to customize the application startup/shutdown steps.
 *
 */

// define a module called "application"
library.common.define(module, "application", function() {

    /*
      This function is called on application startup.
    */
    function onStartup() {
        // insert application startup code here
        //start jMaki /xhp service (xmlhttpproxy)
        library.jmaki.useProxy();
    }
    
    /*
      This function is called on application shutdown.
    */
    function onShutdown() {
        // insert application shutdown code here
    }
    
    // export the functions
    this.onStartup = onStartup;
    this.onShutdown = onShutdown;
});


You need to create an account or log in to post comments to this site.


Click here to browse all 4863 code snippets

Related Posts