web-notification.js
function (argumentsArray) {
        //callback is always the last argument
        var callback = noop;
        if (argumentsArray.length && (typeof argumentsArray[argumentsArray.length - 1] === 'function')) {
            callback = argumentsArray.pop();
        }

        var title = null;
        var options = null;
        if (argumentsArray.length === 2) {
            title = argumentsArray[0];
            options = argumentsArray[1];
        } else if (argumentsArray.length === 1) {
            var value = argumentsArray.pop();
            if (typeof value === 'string') {
                title = value;
                options = {};
            } else {
                title = '';
                options = value;
            }
        }

        //set defaults
        title = title || '';
        options = options || {};

        return {
            callback: callback,
            title: title,
            options: options
        };
    }
function (argumentsArray) {
        //callback is always the last argument
        var callback = noop;
        if (argumentsArray.length && (typeof argumentsArray[argumentsArray.length - 1] === 'function')) {
            callback = argumentsArray.pop();
        }

        var title = null;
        var options = null;
        if (argumentsArray.length === 2) {
            title = argumentsArray[0];
            options = argumentsArray[1];
        } else if (argumentsArray.length === 1) {
            var value = argumentsArray.pop();
            if (typeof value === 'string') {
                title = value;
                options = {};
            } else {
                title = '';
                options = value;
            }
        }

        //set defaults
        title = title || '';
        options = options || {};

        return {
            callback: callback,
            title: title,
            options: options
        };
    }
function ( argumentsArray ) { //callback is always the last argument var callback = noop ; if ( argumentsArray . length && ( typeof argumentsArray [ argumentsArray . length - 1 ] === 'function' ) ) { callback = argumentsArray . pop ( ) ; } var title = null ; var options = null ; if ( argumentsArray . length === 2 ) { title = argumentsArray [ 0 ] ; options = argumentsArray [ 1 ] ; } else if ( argumentsArray . length === 1 ) { var value = argumentsArray . pop ( ) ; if ( typeof value === 'string' ) { title = value ; options = { } ; } else { title = '' ; options = value ; } } //set defaults title = title || '' ; options = options || { } ; return { callback : callback , title : title , options : options } ; }
Returns an object with the show notification input.

@function
@memberof! webNotification
@alias webNotification.parseInput
@private
@param {Array} argumentsArray - An array of all arguments provided to the show notification function
@returns {Object} The parsed data
Returns an object with the show notification input .