Skip to content

withFreezedOptions

Makes the $options property read-only. This improves performance when you access options in the ticked service method.

Usage

js
import { 
withFreezedOptions
} from '@studiometa/js-toolkit';
import {
Slider
} from '@studiometa/ui';
export default class
SliderWithFreezedOptions
extends
withFreezedOptions
(
Slider
,
) {}

Parameters

  • BaseClass (Base): The class to use as parent.

Return value

  • Base: A child class of the given class with the $options property freezed.

MIT Licensed