Skip to content

Commit ab54d4c

Browse files
committed
Merge pull request cocos2d#2434 from pandamicro/develop
Fixed cocos2d#2433: Fix ArmatureAnimation's setMovementEventCallFunc and setFrameEventCallFunc
2 parents f03b6cf + 3fb0282 commit ab54d4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extensions/cocostudio/armature/animation/CCArmatureAnimation.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ ccs.ArmatureAnimation = ccs.ProcessBase.extend(/** @lends ccs.ArmatureAnimation#
527527
*/
528528
setMovementEventCallFunc: function (callFunc, target) {
529529
if(arguments.length == 1){
530-
this._frameEventListener = target;
530+
this._frameEventListener = callFunc;
531531
}else if(arguments.length == 2){
532532
this._movementEventTarget = target;
533533
this._movementEventCallFunc = callFunc;
@@ -541,7 +541,7 @@ ccs.ArmatureAnimation = ccs.ProcessBase.extend(/** @lends ccs.ArmatureAnimation#
541541
*/
542542
setFrameEventCallFunc: function (callFunc, target) {
543543
if(arguments.length == 1){
544-
this._frameEventListener = target;
544+
this._frameEventListener = callFunc;
545545
}else if(arguments.length == 2){
546546
this._frameEventTarget = target;
547547
this._frameEventCallFunc = callFunc;

0 commit comments

Comments
 (0)