re-added method length and marked it as deprecated (this method disappeared during documentation work)
This commit is contained in:
parent
449a1a727a
commit
ab280132bd
1 changed files with 14 additions and 2 deletions
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue