Skip to content

Commit 7718057

Browse files
authored
Merge pull request #3460 from natural-law/update-spine
Solve spine event callback error.
2 parents 7894486 + 05bfb2f commit 7718057

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

extensions/spine/CCSkeletonAnimation.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ proto.start = function(trackEntry) {
7373
this.startListener(trackEntry);
7474
}
7575
if (this.callback) {
76-
this.callback.call(this.callbackTarget, this.skeletonNode, trackEntry, animEventType.START, null, 0);
76+
this.callback.call(this.callbackTarget, this.skeletonNode, trackEntry, sp.ANIMATION_EVENT_TYPE.START, null, 0);
7777
}
7878
};
7979

@@ -82,7 +82,7 @@ proto.interrupt = function(trackEntry) {
8282
this.interruptListener(trackEntry);
8383
}
8484
if (this.callback) {
85-
this.callback.call(this.callbackTarget, this.skeletonNode, trackEntry, animEventType.INTERRUPT, null, 0);
85+
this.callback.call(this.callbackTarget, this.skeletonNode, trackEntry, sp.ANIMATION_EVENT_TYPE.INTERRUPT, null, 0);
8686
}
8787
};
8888

@@ -91,7 +91,7 @@ proto.end = function (trackEntry) {
9191
this.endListener(trackEntry);
9292
}
9393
if (this.callback) {
94-
this.callback.call(this.callbackTarget, this.skeletonNode, trackEntry, animEventType.END, null, 0);
94+
this.callback.call(this.callbackTarget, this.skeletonNode, trackEntry, sp.ANIMATION_EVENT_TYPE.END, null, 0);
9595
}
9696
};
9797

@@ -100,7 +100,7 @@ proto.dispose = function (trackEntry) {
100100
this.disposeListener(trackEntry);
101101
}
102102
if (this.callback) {
103-
this.callback.call(this.callbackTarget, this.skeletonNode, trackEntry, animEventType.DISPOSE, null, 0);
103+
this.callback.call(this.callbackTarget, this.skeletonNode, trackEntry, sp.ANIMATION_EVENT_TYPE.DISPOSE, null, 0);
104104
}
105105
};
106106

@@ -110,7 +110,7 @@ proto.complete = function (trackEntry) {
110110
this.completeListener(trackEntry, loopCount);
111111
}
112112
if (this.callback) {
113-
this.callback.call(this.callbackTarget, this.skeletonNode, trackEntry, animEventType.COMPLETE, null, loopCount);
113+
this.callback.call(this.callbackTarget, this.skeletonNode, trackEntry, sp.ANIMATION_EVENT_TYPE.COMPLETE, null, loopCount);
114114
}
115115
};
116116

@@ -119,7 +119,7 @@ proto.event = function (trackEntry, event) {
119119
this.eventListener(trackEntry, event);
120120
}
121121
if (this.callback) {
122-
this.callback.call(this.callbackTarget, this.skeletonNode, trackEntry, animEventType.EVENT, event, 0);
122+
this.callback.call(this.callbackTarget, this.skeletonNode, trackEntry, sp.ANIMATION_EVENT_TYPE.EVENT, event, 0);
123123
}
124124
};
125125

0 commit comments

Comments
 (0)