Fix JSB graphics clean undefined arguments issue

This commit is contained in:
pandamicro
2017-07-09 11:06:31 +08:00
parent 1f8dc59fa8
commit 3974c4e976
+1 -1
View File
@@ -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);
},
/**