Closed GoogleCodeExporter closed 8 years ago
I'm using Revision 557, soon to be released as 2.0 beta2, and the following
works for me:
/**
* @name String
* @class
* The String prototype is extended by numerous utility
* methods, e.g. {@link #strip()}.
*
* This comment should appear as the introductory text for
* the String class inside the documentation. However,
* there seems to be no way to get it included properly.
* Neither @class nor @namespace seem to help.
*/
Object.extend(String.prototype,
/** @lends String.prototype */
{
/**
* Returns a trimmed version of this string.
* @return Trimmed string
*/
strip: function() {
return this.replace(/^\s+/, '').replace(/\s+$/, '');
}
});
Please confirm if this solves your issue?
Original comment by micmath
on 5 Apr 2008 at 5:36
Original issue reported on code.google.com by
til...@gmail.com
on 3 Apr 2008 at 5:43