From ab280132bd1c6296d12a1fed101266c614b0048b Mon Sep 17 00:00:00 2001 From: grob Date: Wed, 7 Feb 2007 18:11:01 +0000 Subject: [PATCH] re-added method length and marked it as deprecated (this method disappeared during documentation work) --- helma/Search.js | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/helma/Search.js b/helma/Search.js index aa9b79bb..8419fadc 100644 --- a/helma/Search.js +++ b/helma/Search.js @@ -17,9 +17,9 @@ // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // // -// $Revision: 1.9 $ +// $Revision: 1.10 $ // $Author: robert $ -// $Date: 2007/01/30 17:32:17 $ +// $Date: 2007/02/07 17:04:51 $ // @@ -761,6 +761,18 @@ helma.Search.HitCollection = function(hits) { return (hits != null) ? hits.length() : 0; }; + /** + * Returns the number of hits in this collection. + * This method is deprecated, use {@link #size} instead. + * @returns The number of hits. + * @type Number + * @deprecated + * @see #size + */ + this.length = function() { + return this.size(); + }; + return this; };