Fix #816; remove references to valueWindow (#817)
[dygraphs.git] / jsdoc-toolkit / app / test / multi_methods.js
... / ...
CommitLineData
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*/
21function 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}