import a11y from './a11y';
import keys from './keys';
import location from './location';
import next from './next';
import progress from './progress';
import scale from './scale';
import timer from './timer';
import title from './title';
import view from './view';

export default (shower) => {
    a11y(shower);
    keys(shower); // should come before `timer`
    progress(shower);
    next(shower); // should come before `timer`
    timer(shower);
    title(shower); // should come before `location`
    location(shower);
    view(shower);
    scale(shower);

    // maintains invariant: active slide always exists in `full` mode
    if (shower.isFullMode && !shower.activeSlide) {
        shower.first();
    }
};

import a11y from './a11y';
import keys from './keys';
import location from './location';
import next from './next';
import progress from './progress';
import scale from './scale';
import timer from './timer';
import title from './title';
import view from './view';

export default (shower) => {
    a11y(shower);
    keys(shower);
    progress(shower);
    next(shower);
    timer(shower); // should come after `keys` and `next`
    title(shower);
    location(shower); // should come after `title`
    view(shower);
    scale(shower); // should come after `view`

    // maintains invariant: active slide always exists in `full` mode
    if (shower.isFullMode && !shower.activeSlide) {
        shower.first();
    }
};

Clarify comments on module order
Clarify comments on module order
