Skip to content

Commit 94ee8d9

Browse files
committed
Optional parameter inheritance fixes.
1 parent fe6b014 commit 94ee8d9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

cocos2d/core/sprites/CCSpriteBatchNode.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ cc.SpriteBatchNode = cc.Node.extend(/** @lends cc.SpriteBatchNode# */{
576576
* Removes all children from the container and do a cleanup all running actions depending on the cleanup parameter. <br/>
577577
* (override removeAllChildren of cc.Node)
578578
* @function
579-
* @param {Boolean} cleanup
579+
* @param {Boolean} [cleanup=true]
580580
*/
581581
removeAllChildren: function (cleanup) {
582582
// Invalidate atlas index. issue #569
@@ -673,4 +673,4 @@ cc.SpriteBatchNode.create = function (fileImage, capacity) {
673673
* @see cc.SpriteBatchNode
674674
* @function
675675
*/
676-
cc.SpriteBatchNode.createWithTexture = cc.SpriteBatchNode.create;
676+
cc.SpriteBatchNode.createWithTexture = cc.SpriteBatchNode.create;

cocos2d/parallax/CCParallaxNode.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ cc.ParallaxNode = cc.Node.extend(/** @lends cc.ParallaxNode# */{
200200

201201
/**
202202
* Remove all children with cleanup
203-
* @param {Boolean} cleanup
203+
* @param {Boolean} [cleanup=true]
204204
*/
205205
removeAllChildren:function (cleanup) {
206206
this.parallaxArray.length = 0;

cocos2d/particle/CCParticleBatchNode.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ cc.ParticleBatchNode = cc.Node.extend(/** @lends cc.ParticleBatchNode# */{
311311
},
312312

313313
/**
314-
* @param {Boolean} doCleanup
314+
* @param {Boolean} [doCleanup=true]
315315
*/
316316
removeAllChildren:function (doCleanup) {
317317
var locChildren = this._children;

0 commit comments

Comments
 (0)