mirror of
https://github.com/zoriya/v10.git
synced 2026-08-16 02:45:09 +00:00
fix(utils): stable sort comparator and orphaned JSDoc (#1286)
This commit is contained in:
@@ -180,9 +180,6 @@ export type TextTrack = Track & {
|
||||
*/
|
||||
export type PartiallyResolvedTextTrack = PartiallyResolved<TextTrack>;
|
||||
|
||||
/**
|
||||
* Unresolved text track (alias for backwards compatibility).
|
||||
|
||||
/**
|
||||
* Union of all resolved track types.
|
||||
*/
|
||||
@@ -196,9 +193,6 @@ export type PartiallyResolvedTrack =
|
||||
| PartiallyResolvedAudioTrack
|
||||
| PartiallyResolvedTextTrack;
|
||||
|
||||
/**
|
||||
* Union of all unresolved track types (alias for backwards compatibility).
|
||||
|
||||
// =============================================================================
|
||||
// Switching and Selection Sets
|
||||
// =============================================================================
|
||||
|
||||
@@ -12,5 +12,5 @@ export function getTextTrackList(media: HTMLMediaElement, filterPred: (textTrack
|
||||
}
|
||||
|
||||
function sortByTextTrackKind(a: TextTrack, b: TextTrack): number {
|
||||
return a.kind >= b.kind ? 1 : -1;
|
||||
return a.kind > b.kind ? 1 : a.kind < b.kind ? -1 : 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user