/* https://leahayes.wordpress.com/2011/08/28/documenting-javascript-with-jsdoc3/ Namespaces can still be documented when a more abstract mechanism is used. @lends allows members to be added to an existing namespace: */ /** * Root namespace * @namespace root */ $namespace('root', /** @lends root **/ { /** * Do something really neat */ foo: function() { } }); /** * Nested namespace * @namespace root.nested */ $namespace('root.nested', /** @lends root.nested **/ { /** * Do something else that is really neat */ bar: function() { } });