function show() {
        // If there's no caption toggle, bail
        if (!utils.is.element(this.elements.buttons.captions)) {
            return;
        }

        // Try to load the value from storage
        var active = this.storage.get('captions');

        // Otherwise fall back to the default config
        if (!utils.is.boolean(active)) {
            active = this.config.captions.active;
        } else {
            this.captions.active = active;
        }

        if (active) {
            utils.toggleClass(this.elements.container, this.config.classNames.captions.active, true);
            utils.toggleState(this.elements.buttons.captions, true);
        }
    }
// Display captions container and button (for initialization)
Display captions container and button (for initialization)
Display captions container and button ( for initialization )
function show() {
        if (!utils.is.element(this.elements.buttons.captions)) {
            return;
        }
        var active = this.storage.get('captions');
        if (!utils.is.boolean(active)) {
            active = this.config.captions.active;
        } else {
            this.captions.active = active;
        }
        if (active) {
            utils.toggleClass(this.elements.container, this.config.classNames.captions.active, true);
            utils.toggleState(this.elements.buttons.captions, true);
        }
    }
function show ( ) { if ( ! utils . is . element ( this . elements . buttons . captions ) ) { return ; } var active = this . storage . get ( 'captions' ) ; if ( ! utils . is . boolean ( active ) ) { active = this . config . captions . active ; } else { this . captions . active = active ; } if ( active ) { utils . toggleClass ( this . elements . container , this . config . classNames . captions . active , true ) ; utils . toggleState ( this . elements . buttons . captions , true ) ; } }
Display captions container and button (for initialization)
Display captions container and button ( for initialization )
// If there's no caption toggle, bail // Try to load the value from storage // Otherwise fall back to the default config