Documenting String.prototype functions

19 views
Skip to first unread message

Tomasz Jama

unread,
Sep 19, 2013, 7:02:02 AM9/19/13
to yui...@googlegroups.com
I have a code like this in Foo module:

 String.prototype.capitaliseFirstLetter = function() {
    return this.charAt(0).toUpperCase() + this.slice(1);
  };

I tried documenting it like this:

/**
     * Capitalize first letter of string
     * @method ucfirst
     * @for String
     */

but it doesn't show up in module view. Is it possible?
Reply all
Reply to author
Forward
0 new messages