removing shallowCopy from optionsObject

addresses #99
This commit is contained in:
Yotam Mann 2015-10-21 15:27:52 -04:00
parent 775e877cfa
commit 1a8ccff5a0

View file

@ -533,11 +533,9 @@ define(function(){
* should appear in the options object
* @param {Object=} defaults optional defaults to mixin to the returned
* options object
* @param {Boolean} [shallowCopy=false] Shallow copies avoid recursively
* accessing nested objects.
* @return {Object} the options object with the names mapped to the arguments
*/
Tone.prototype.optionsObject = function(values, keys, defaults, shallowCopy){
Tone.prototype.optionsObject = function(values, keys, defaults){
var options = {};
if (values.length === 1 && this.isObject(values[0])){
options = values[0];
@ -547,7 +545,7 @@ define(function(){
}
}
if (!this.isUndef(defaults)){
return this.defaultArg(options, defaults, shallowCopy);
return this.defaultArg(options, defaults);
} else {
return options;
}