From e783713ca70c1496b9bdaa24907e6f9f3c44785e Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Sun, 14 Nov 2010 00:56:54 -0500 Subject: [PATCH] Added a result_data argment to prop_copy() --- lib/class.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/class.js b/lib/class.js index 6883851..1d3bf20 100644 --- a/lib/class.js +++ b/lib/class.js @@ -81,13 +81,19 @@ function Class() {}; * * The destination object is directly modified. * - * @param {Object} props properties to copy - * @param {Object} dest destination object + * 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 ) {