Skip to content

Commit c7c6d7f

Browse files
committed
Remove references to the helpDialog, which hasn't existed for at least 11 years.
1 parent 4127407 commit c7c6d7f

File tree

5 files changed

+4
-26
lines changed

5 files changed

+4
-26
lines changed

scripts/buildplayer.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1561,8 +1561,6 @@
15611561
return this.translate( 'slower', 'Slower' );
15621562
} else if (control === 'preferences') {
15631563
return this.translate( 'preferences', 'Preferences' );
1564-
} else if (control === 'help') {
1565-
// return this.translate( 'help', 'Help' );
15661564
} else if (control === 'fullscreen') {
15671565
return ( !this.fullscreen ) ? this.translate( 'enterFullScreen', 'Enter full screen' ) : this.translate( 'exitFullScreen', 'Exit full screen' );
15681566
} else {

scripts/control.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,11 +1122,6 @@
11221122
}
11231123
};
11241124

1125-
AblePlayer.prototype.handleHelpClick = function() {
1126-
this.setFullscreen(false);
1127-
this.helpDialog.show();
1128-
};
1129-
11301125
AblePlayer.prototype.handleTranscriptToggle = function () {
11311126
var thisObj = this;
11321127
var visible = this.$transcriptDiv.is(':visible');

scripts/event.js

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -348,9 +348,6 @@
348348
this.showingPrefsDialog = false;
349349
}
350350
break;
351-
case 'help':
352-
this.handleHelpClick();
353-
break;
354351
case 'transcript':
355352
if ( !this.closingTranscript ) {
356353
this.handleTranscriptToggle();
@@ -364,10 +361,8 @@
364361
};
365362

366363
AblePlayer.prototype.getButtonNameFromClass = function (classString) {
367-
368364
// player control buttons all have class="able-button-handler-x" where x is the identifier
369365
// buttons might also have other classes assigned though
370-
371366
var classes, i;
372367

373368
classes = classString.split(' ');
@@ -393,11 +388,11 @@
393388
// handle keystrokes (using DHTML Style Guide recommended key combinations)
394389
// https://web.archive.org/web/20130127004544/http://dev.aol.com/dhtml_style_guide/#mediaplayer
395390
// Modifier keys Alt + Ctrl are on by default, but can be changed within Preferences
396-
// NOTE #1: Style guide only supports Play/Pause, Stop, Mute, Captions, & Volume Up & Down
391+
// - Style guide only supports Play/Pause, Stop, Mute, Captions, & Volume Up & Down
397392
// The rest are reasonable best choices
398-
// NOTE #2: If there are multiple players on a single page, keystroke handlers
393+
// - If there are multiple players on a single page, keystroke handlers
399394
// are only bound to the FIRST player
400-
// NOTE #3: The DHTML Style Guide is now the W3C WAI-ARIA Authoring Guide and has undergone many revisions
395+
// - The DHTML Style Guide is now the W3C WAI-ARIA Authoring Guide and has undergone many revisions
401396
// including removal of the "media player" design pattern. There's an issue about that:
402397
// https://github.com/w3c/aria-practices/issues/27
403398

@@ -837,7 +832,7 @@
837832
});
838833

839834
// handle local keydown events if this isn't the only player on the page;
840-
// otherwise these are dispatched by global handler (see ableplayer-base,js)
835+
// otherwise these are dispatched by global handler (see ableplayer-base.js)
841836
this.$ableDiv.on( 'keydown', function (e) {
842837
if (AblePlayer.nextIndex > 1) {
843838
thisObj.onPlayerKeyPress(e);

scripts/initialize.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -307,13 +307,6 @@
307307
svg[2] = 'icon-fullscreen-collapse';
308308
svg[3] = this.fullscreenCollapseButtonImg;
309309
break;
310-
311-
case 'help':
312-
svg[0] = '0 0 11 20';
313-
svg[1] = 'M0.577 6.317q-0.028-0.167 0.061-0.313 1.786-2.969 5.179-2.969 0.893 0 1.797 0.346t1.629 0.926 1.183 1.423 0.458 1.769q0 0.603-0.173 1.127t-0.391 0.854-0.614 0.664-0.642 0.485-0.681 0.396q-0.458 0.257-0.765 0.725t-0.307 0.748q0 0.19-0.134 0.363t-0.313 0.173h-2.679q-0.167 0-0.285-0.206t-0.117-0.419v-0.502q0-0.926 0.725-1.747t1.596-1.211q0.658-0.301 0.938-0.625t0.279-0.848q0-0.469-0.519-0.826t-1.2-0.357q-0.725 0-1.205 0.324-0.391 0.279-1.194 1.283-0.145 0.179-0.346 0.179-0.134 0-0.279-0.089l-1.83-1.395q-0.145-0.112-0.173-0.279zM3.786 16.875v-2.679q0-0.179 0.134-0.313t0.313-0.134h2.679q0.179 0 0.313 0.134t0.134 0.313v2.679q0 0.179-0.134 0.313t-0.313 0.134h-2.679q-0.179 0-0.313-0.134t-0.134-0.313z';
314-
svg[2] = 'icon-help';
315-
svg[3] = this.helpButtonImg;
316-
break;
317310
}
318311

319312
return svg;

scripts/preference.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -681,9 +681,6 @@
681681
} else if (this.controls[i] === 'prefs') {
682682
kbLabels.push(this.translate( 'preferences', 'Preferences' ));
683683
keys.push('e');
684-
} else if (this.controls[i] === 'help') {
685-
kbLabels.push(this.translate( 'help', 'Help' ));
686-
keys.push('h');
687684
}
688685
}
689686
for (i=0; i<keys.length; i++) {

0 commit comments

Comments
 (0)