Merge pull request #10461 from ntotani/fix-lua-framework-v3

fix SpriteEx
This commit is contained in:
minggo 2015-02-12 16:17:46 +08:00
commit f44ea6468e
1 changed files with 2 additions and 2 deletions

View File

@ -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