DocumentJS.types.add  class     

Used to set scope to add to classes or methods in another file.

Example:

/**
* @add jQuery.String.static
*/
$.String.
/**
* Splits a string with a regex correctly cross browser
* @param {Object} string
* @param {Object} regex
*/
rsplit = function( string, regex ) {

It's important to note that add must be in its own comment block.

End Result:

© Jupiter IT - JavaScriptMVC Training and Support