From 7e8dd867da17b45e54c68027f8bfea784c932852 Mon Sep 17 00:00:00 2001 From: Tomasz Chabora Date: Fri, 13 Sep 2019 12:51:59 +0200 Subject: [PATCH] Mention constructor arguments in duplicate() doc --- doc/classes/Node.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/classes/Node.xml b/doc/classes/Node.xml index 097fa1f6e54..78fa69731dd 100644 --- a/doc/classes/Node.xml +++ b/doc/classes/Node.xml @@ -171,6 +171,7 @@ Duplicates the node, returning a new node. You can fine-tune the behavior using the [code]flags[/code] (see [enum DuplicateFlags]). + [b]Note:[/b] It will not work properly if the node contains a script with constructor arguments (i.e. needs to supply arguments to [method Object._init] method). In that case, the node will be duplicated without a script.