1
0
Fork 0

Corrected documentation and default value for unless_exists in propobj's doSetup()

closure/master
Mike Gerwitz 2011-04-02 10:31:39 -04:00
parent 61f2f7e22d
commit 0c48f00c74
1 changed files with 6 additions and 3 deletions

View File

@ -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