mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 16:12:40 +08:00
Fix JSB graphics clean undefined arguments issue
This commit is contained in:
@@ -320,7 +320,7 @@ var Graphics = cc.Class({
|
||||
* @param {Boolean} [clean] Whether to clean the graphics inner cache.
|
||||
*/
|
||||
clear: function (clean) {
|
||||
this._sgNode.clear(clean);
|
||||
this._sgNode.clear(!!clean);
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user