Skip to content

Commit

Permalink
Node: Document more modules. (#30012)
Browse files Browse the repository at this point in the history
* Node: Document more modules.

* Docs: Fix typo.
  • Loading branch information
Mugen87 authored Dec 2, 2024
1 parent 480c414 commit b2320be
Show file tree
Hide file tree
Showing 6 changed files with 450 additions and 11 deletions.
20 changes: 18 additions & 2 deletions src/nodes/core/Node.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,22 @@ class Node extends EventDispatcher {

// private

/**
* The cache key of this node.
*
* @private
* @type {Number?}
* @default null
*/
this._cacheKey = null;

/**
* The cache key 's version.
*
* @private
* @type {Number}
* @default 0
*/
this._cacheKeyVersion = 0;

Object.defineProperty( this, 'id', { value: _nodeId ++ } );
Expand Down Expand Up @@ -244,9 +259,10 @@ class Node extends EventDispatcher {
}

/**
* Returns a generator that can be used to iterate over the child nodes.
* Generator function that can be used to iterate over the child nodes.
*
* @return {Generator} The generator.
* @generator
* @yields {Node} A child node.
*/
* getChildren() {

Expand Down
Loading

0 comments on commit b2320be

Please sign in to comment.