lib/altshift/application.js
function (config) {
        config = config || {};

        if (config.onStart !== undefined) {
            if (!isFunction(config.onStart)) {
                throw new core.TypeError({
                    code: 'application-configure',
                    message: "config.onStart must be a function"
                });
            }

            this.onStart = config.onStart;
        }

        if (config.onStop !== undefined) {
            if (!isFunction(config.onStop)) {
                throw new core.TypeError({
                    code: 'application-configure',
                    message: "config.onStop must be a function"
                });
            }
            this.onStop = config.onStop;
        }

        return this;
    }
function (config) {
        config = config || {};

        if (config.onStart !== undefined) {
            if (!isFunction(config.onStart)) {
                throw new core.TypeError({
                    code: 'application-configure',
                    message: "config.onStart must be a function"
                });
            }

            this.onStart = config.onStart;
        }

        if (config.onStop !== undefined) {
            if (!isFunction(config.onStop)) {
                throw new core.TypeError({
                    code: 'application-configure',
                    message: "config.onStop must be a function"
                });
            }
            this.onStop = config.onStop;
        }

        return this;
    }
function ( config ) { config = config || { } ; if ( config . onStart !== undefined ) { if ( ! isFunction ( config . onStart ) ) { throw new core . TypeError ( { code : 'application-configure' , message : "config.onStart must be a function" } ) ; } this . onStart = config . onStart ; } if ( config . onStop !== undefined ) { if ( ! isFunction ( config . onStop ) ) { throw new core . TypeError ( { code : 'application-configure' , message : "config.onStop must be a function" } ) ; } this . onStop = config . onStop ; } return this ; }
Configure the application

@param {Object} config
@return this
Configure the application