Skip to content

Commit

Permalink
update event type callback function parameters (cocos#387)
Browse files Browse the repository at this point in the history
  • Loading branch information
knoxHuang authored Jan 7, 2021
1 parent 79c1c90 commit dd9ba43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/cases/ui/21.video-player/video-player-ctrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class VideoPlayerCtrl extends Component {
this.videoPlayer.play();
}

onEventType (type: string, target: VideoPlayerCtrl) {
onEventType (target: VideoPlayerCtrl, type: string) {
this.eventType.string = type;
}

Expand Down

0 comments on commit dd9ba43

Please sign in to comment.