From 2b43c12b88b2d9ec18249e210ba4671de5fd1f81 Mon Sep 17 00:00:00 2001 From: Naoyuki Totani Date: Thu, 12 Feb 2015 00:13:52 +0900 Subject: [PATCH] fix SpriteEx --- .../lua-bindings/script/framework/extends/SpriteEx.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cocos/scripting/lua-bindings/script/framework/extends/SpriteEx.lua b/cocos/scripting/lua-bindings/script/framework/extends/SpriteEx.lua index 642c8d97e7..0f1c8f7479 100644 --- a/cocos/scripting/lua-bindings/script/framework/extends/SpriteEx.lua +++ b/cocos/scripting/lua-bindings/script/framework/extends/SpriteEx.lua @@ -45,8 +45,8 @@ function Sprite:playAnimationOnce(animation, args) actions[#actions + 1] = cc.RemoveSelf:create() end - if onComplete then - actions[#actions + 1] = cc.CallFunc:create(onComplete) + if args.onComplete then + actions[#actions + 1] = cc.CallFunc:create(args.onComplete) end local action