re-added method length and marked it as deprecated (this method disappeared during documentation work)

This commit is contained in:
grob 2007-02-07 18:11:01 +00:00
parent 449a1a727a
commit ab280132bd

View file

@ -17,9 +17,9 @@
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
// //
// //
// $Revision: 1.9 $ // $Revision: 1.10 $
// $Author: robert $ // $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; 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; return this;
}; };