1
0
Fork 0

Added a result_data argment to prop_copy()

closure/master
Mike Gerwitz 2010-11-14 00:56:54 -05:00
parent 9dc025e6b1
commit e783713ca7
1 changed files with 9 additions and 3 deletions

View File

@ -81,13 +81,19 @@ function Class() {};
*
* The destination object is directly modified.
*
* The result data will be populated with information from the copy that may be
* useful to the creation of the class (e.g. list of the abstract methods).
*
* @param {Object} props properties to copy
* @param {Object} dest destination object
* @param {Object} result_data object to store data regarding the copy in
*
* @return undefined
*/
function prop_copy( props, dest )
function prop_copy( props, dest, result_data )
{
result_data = result_data || {};
// copy each of the properties to the destination object
for ( property in props )
{