From e39cfea741b29f4170aa89e58c14a8a36db8af88 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Sat, 18 Dec 2010 09:38:58 -0500 Subject: [PATCH] Now exporting util's array_shrink() as util.arrayShrink() --- lib/util.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/util.js b/lib/util.js index edb446e..693caa9 100644 --- a/lib/util.js +++ b/lib/util.js @@ -313,7 +313,7 @@ exports.propCopy = function( props, dest, result_data, actions ) // because the length of the array remains the same after deleting elements) if ( abstract_regen ) { - result_data.abstractMethods = array_shrink( abstract_methods ); + result_data.abstractMethods = exports.arrayShrink( abstract_methods ); } } @@ -440,7 +440,7 @@ function method_override( * * @return {Array} shrunken array */ -function array_shrink( items ) +exports.arrayShrink = function( items ) { // copy the methods into a new array by pushing them onto it, to ensure // the length property of the array will work properly