Relapse v0.9.1
Changes
- Wait until action has been taken before applying
style=""
properties. - Confirm instance exists before triggering
relapse.reinit()
Breaking
- The
openCount
instance reference has been renamed toopened
Fixes
- Fixed the auto-collapsing bug occurring on last known folds when both
persist
andmultiple
were set totrue
.
Added new config
method
Relapse now provides live reconfiguration alignments. Instances have access to an additional config()
method which can be used for updating options on an existing relapse instance. When using this method, the current instance will adhere to new settings in real-time.
Refer to the Methods API for a more detailed breakdown.
import relapse from 'relapse';
const instance = relapse('#example', {
multiple: true, // we allow for multiple folds to be opened
persist: false // we do not require a single fold to persist
});
// Using the config method and passing the following would
// result in all expanded folds to be closed as we set multiple to false
// and because we set persist to true, all but 1 fold will collapse.
//
instance.config({
multiple: false,
persist: true
})