@@ -1345,7 +1345,7 @@ cc.Node = cc.Class.extend(/** @lends cc.Node# */{
1345
1345
* If the cleanup parameter is not passed, it will force a cleanup. <br/>
1346
1346
* If the node orphan, then nothing happens.
1347
1347
* @function
1348
- * @param {Boolean } cleanup true if all actions and callbacks on this node should be removed, false otherwise.
1348
+ * @param {Boolean } [ cleanup=true] true if all actions and callbacks on this node should be removed, false otherwise.
1349
1349
* @see cc.Node#removeFromParentAndCleanup
1350
1350
*/
1351
1351
removeFromParent : function ( cleanup ) {
@@ -1360,7 +1360,7 @@ cc.Node = cc.Class.extend(/** @lends cc.Node# */{
1360
1360
* Removes this node itself from its parent node. <br/>
1361
1361
* If the node orphan, then nothing happens.
1362
1362
* @deprecated since v3.0, please use removeFromParent() instead
1363
- * @param {Boolean } cleanup true if all actions and callbacks on this node should be removed, false otherwise.
1363
+ * @param {Boolean } [ cleanup=true] true if all actions and callbacks on this node should be removed, false otherwise.
1364
1364
*/
1365
1365
removeFromParentAndCleanup : function ( cleanup ) {
1366
1366
cc . log ( cc . _LogInfos . Node_removeFromParentAndCleanup ) ;
@@ -1374,7 +1374,7 @@ cc.Node = cc.Class.extend(/** @lends cc.Node# */{
1374
1374
* to override this method </p>
1375
1375
* @function
1376
1376
* @param {cc.Node } child The child node which will be removed.
1377
- * @param {Boolean|null } [cleanup=null ] true if all running actions and callbacks on the child node will be cleanup, false otherwise.
1377
+ * @param {Boolean } [cleanup=true ] true if all running actions and callbacks on the child node will be cleanup, false otherwise.
1378
1378
*/
1379
1379
removeChild : function ( child , cleanup ) {
1380
1380
// explicit nil handling
@@ -1395,7 +1395,7 @@ cc.Node = cc.Class.extend(/** @lends cc.Node# */{
1395
1395
* If the cleanup parameter is not passed, it will force a cleanup. <br/>
1396
1396
* @function
1397
1397
* @param {Number } tag An integer number that identifies a child node
1398
- * @param {Boolean } cleanup true if all running actions and callbacks on the child node will be cleanup, false otherwise.
1398
+ * @param {Boolean } [ cleanup=true] true if all running actions and callbacks on the child node will be cleanup, false otherwise.
1399
1399
* @see cc.Node#removeChildByTag
1400
1400
*/
1401
1401
removeChildByTag : function ( tag , cleanup ) {
@@ -1411,7 +1411,7 @@ cc.Node = cc.Class.extend(/** @lends cc.Node# */{
1411
1411
1412
1412
/**
1413
1413
* Removes all children from the container and do a cleanup all running actions depending on the cleanup parameter.
1414
- * @param {Boolean | null } cleanup
1414
+ * @param {Boolean } [ cleanup=true]
1415
1415
*/
1416
1416
removeAllChildrenWithCleanup : function ( cleanup ) {
1417
1417
//cc.log(cc._LogInfos.Node_removeAllChildrenWithCleanup); //TODO It should be discuss in v3.0
@@ -1422,7 +1422,7 @@ cc.Node = cc.Class.extend(/** @lends cc.Node# */{
1422
1422
* Removes all children from the container and do a cleanup all running actions depending on the cleanup parameter. <br/>
1423
1423
* If the cleanup parameter is not passed, it will force a cleanup. <br/>
1424
1424
* @function
1425
- * @param {Boolean | null } cleanup true if all running actions on all children nodes should be cleanup, false otherwise.
1425
+ * @param {Boolean } [ cleanup=true] true if all running actions on all children nodes should be cleanup, false otherwise.
1426
1426
*/
1427
1427
removeAllChildren : function ( cleanup ) {
1428
1428
// not using detachChild improves speed here
0 commit comments