From 3974c4e97653c9353c837a5aea7dd6768de50f9a Mon Sep 17 00:00:00 2001 From: pandamicro Date: Sun, 9 Jul 2017 11:06:31 +0800 Subject: [PATCH] Fix JSB graphics clean undefined arguments issue --- cocos2d/core/graphics/graphics.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos2d/core/graphics/graphics.js b/cocos2d/core/graphics/graphics.js index ff6d5c0177..66920c60fc 100644 --- a/cocos2d/core/graphics/graphics.js +++ b/cocos2d/core/graphics/graphics.js @@ -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); }, /**