Corrected documentation and default value for unless_exists in propobj's doSetup()
parent
61f2f7e22d
commit
0c48f00c74
|
@ -81,11 +81,14 @@ exports.setup = function( dest, properties, methods )
|
||||||
* @param {Object} dest destination object
|
* @param {Object} dest destination object
|
||||||
* @param {Object} properties properties to copy
|
* @param {Object} properties properties to copy
|
||||||
* @param {Object=} methods methods to copy
|
* @param {Object=} methods methods to copy
|
||||||
|
* @param {boolean} unless_exists do not set if method already exists in dest
|
||||||
*
|
*
|
||||||
* @return {undefined}
|
* @return {undefined}
|
||||||
*/
|
*/
|
||||||
function doSetup( dest, properties, methods, unless_exists )
|
function doSetup( dest, properties, methods, unless_exists )
|
||||||
{
|
{
|
||||||
|
unless_exists = !!unless_exists;
|
||||||
|
|
||||||
var hasOwn = Array.prototype.hasOwnProperty;
|
var hasOwn = Array.prototype.hasOwnProperty;
|
||||||
|
|
||||||
// copy over the methods
|
// copy over the methods
|
||||||
|
|
Loading…
Reference in New Issue