sbin/res/jsdoc/app/test/multi_methods.js
branchjsdoc
changeset 520 fe008e95a716
equal deleted inserted replaced
519:46e21d060650 520:fe008e95a716
       
     1 
       
     2 /**
       
     3 	Get the entire flavor.
       
     4 	@name flavor^3
       
     5 	@function
       
     6 	@returns {Object} The entire flavor hash.
       
     7 */
       
     8 /**
       
     9 	Get a named flavor.
       
    10 	@name flavor^2
       
    11 	@function
       
    12 	@param {String} name The name of the flavor to get.
       
    13 	@returns {String} The value of that flavor.
       
    14 */
       
    15 /**
       
    16 	Set the flavor.
       
    17 	@param {String} name The name of the flavor to set.
       
    18 	@param {String} value The value of the flavor.
       
    19 	@returns {String} The value of that flavor.
       
    20 */
       
    21 function flavor(name, value) {
       
    22 	if (arguments.length > 1) flavor[name] = value;
       
    23 	else if (arguments.length == 1) return flavor[name];
       
    24 	else return flavor;
       
    25 }