Skip to content

Commit

Permalink
Updated documentation for Class.classMethod.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoglan committed Nov 12, 2007
1 parent 3d46908 commit b77fa99
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion class.js
Expand Up @@ -444,7 +444,9 @@ JS.Class.CLASS_METHODS = {
/**
* <p>Adds a single named class method to the class and all its child classes. Use
* <tt>this._super</tt> within the function body to refer to methods from the parent
* class. Any subclasses missing the given method name will immediately inherit it.</p>
* class. Any subclasses missing the given method name will immediately inherit it.
* In order for inheritance to take place, you must use this function rather assigning
* new properties directly to the class' constructor.</p>
* @param {String} name The name of the method
* @param {Function} func The method function
*/
Expand Down

0 comments on commit b77fa99

Please sign in to comment.