File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 121121 this . $bigPlayButton . append ( this . $bigPlayIcon ) ;
122122 }
123123
124- this . $bigPlayButton . click ( function ( event ) {
124+ this . $bigPlayButton . on ( 'click' , function ( event ) {
125125 event . preventDefault ( ) ;
126126 thisObj . handlePlay ( ) ;
127127 } ) ;
Original file line number Diff line number Diff line change 2828 if ( e . which === 32 ) {
2929 thisObj . hide ( ) ;
3030 }
31- } ) . click ( function ( ) {
31+ } ) . on ( 'click' , function ( ) {
3232 thisObj . hide ( ) ;
3333 } ) ;
3434
Original file line number Diff line number Diff line change 934934
935935 // handle clicks on playlist items
936936 if ( this . $playlist ) {
937- this . $playlist . click ( function ( e ) {
937+ this . $playlist . on ( 'click' , function ( e ) {
938938 if ( ! thisObj . userClickedPlaylist ) {
939939 // stopgap in case multiple clicks are fired on the same playlist item
940940 thisObj . userClickedPlaylist = true ; // will be set to false after new src is loaded & canplaythrough is triggered
945945 }
946946
947947 // Also play/pause when clicking on the media.
948- this . $media . click ( function ( ) {
948+ this . $media . on ( 'click' , function ( ) {
949949 thisObj . handlePlay ( ) ;
950950 } ) ;
951951
Original file line number Diff line number Diff line change 789789 $prefsDiv . append ( '<hr>' ) ;
790790 saveButton = $ ( '<button class="modal-button">' + this . tt . save + '</button>' ) ;
791791 cancelButton = $ ( '<button class="modal-button">' + this . tt . cancel + '</button>' ) ;
792- saveButton . click ( function ( ) {
792+ saveButton . on ( 'click' , function ( ) {
793793 dialog . hide ( ) ;
794794 thisObj . savePrefsFromForm ( ) ;
795795 } ) ;
796- cancelButton . click ( function ( ) {
796+ cancelButton . on ( 'click' , function ( ) {
797797 dialog . hide ( ) ;
798798 thisObj . resetPrefsForm ( ) ;
799799 } ) ;
823823
824824 // Add click handler for dialog close button
825825 // (button is added in dialog.js)
826- $ ( 'div.able-prefs-form button.modalCloseButton' ) . click ( function ( ) {
826+ $ ( 'div.able-prefs-form button.modalCloseButton' ) . on ( 'click' , function ( ) {
827827 thisObj . resetPrefsForm ( ) ;
828828 } )
829829 // Add handler for escape key
Original file line number Diff line number Diff line change 136136 AblePlayer . prototype . addTranscriptAreaEvents = function ( ) {
137137 var thisObj = this ;
138138
139- this . $autoScrollTranscriptCheckbox . click ( function ( ) {
139+ this . $autoScrollTranscriptCheckbox . on ( 'click' , function ( ) {
140140 thisObj . handleTranscriptLockToggle (
141141 thisObj . $autoScrollTranscriptCheckbox . prop ( "checked" )
142142 ) ;
307307 if ( this . $transcriptArea . length > 0 ) {
308308 this . $transcriptArea
309309 . find ( "span.able-transcript-seekpoint" )
310- . click ( function ( e ) {
310+ . on ( 'click' , function ( e ) {
311311 thisObj . seekTrigger = "transcript" ;
312312 var spanStart = parseFloat ( $ ( this ) . attr ( "data-start" ) ) ;
313313 // Add a tiny amount so that we're inside the span.
You can’t perform that action at this time.
0 commit comments