sunag 3 месяцев назад
Родитель
Сommit
594893f13e
1 измененных файлов с 2 добавлено и 3 удалено
  1. 2 3
      src/nodes/core/IsolateNode.js

+ 2 - 3
src/nodes/core/IsolateNode.js

@@ -21,9 +21,9 @@ class IsolateNode extends Node {
 	 * Constructs a new cache node.
 	 *
 	 * @param {Node} node - The node that should be cached.
-	 * @param {Node} [scope=null] - The scope node that defines the cache context.
+	 * @param {boolean} [parent=true] - Whether this node refers to a shared parent cache or not.
 	 */
-	constructor( node ) {
+	constructor( node, parent = true ) {
 
 		super();
 
@@ -111,7 +111,6 @@ export default IsolateNode;
  */
 export const isolate = ( node ) => new IsolateNode( nodeObject( node ) );
 
-
 /**
  * TSL function for creating a cache node.
  *

粤ICP备19079148号