src/dynamics/_common/track_tags.js
File track_tags.js
has 351 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
Scoped.define("module:TrackTags", [
"base:Class",
"base:Objs",
"base:Events.EventsMixin",
"base:Async",
Function _loadTrackTags
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_loadTrackTags: function() {
if (!this._dyn.get("tracktagssupport")) return;
var _flag = true;
Objs.iter(this._trackTags, function(subtitle, index) {
var _trackTag = document.createElement("track");
Function generateVTTFromObject
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
generateVTTFromObject: function(content, presetTimePeriod) {
presetTimePeriod = presetTimePeriod || 2;
const timeKey = 'times';
const wordsKey = 'words';
Function __appendThumbnailTrackTags
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
__appendThumbnailTrackTags: function(subtitle, index, trackTag, domEvent) {
var _self = this,
_track, _image, _splitText, _dimensions, thumbLink;
trackTag.setAttribute('data-selector', 'thumb-track-tag');
domEvent.on(trackTag, "load", function(ev) {
Function __appendTextTrackTags
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
__appendTextTrackTags: function(subtitle, index, trackTag, flag, domEvent) {