Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
componentWillUnmount() {
if (OverlayScrollbars.valid(this._osInstance)) {
this._osInstance.destroy();
this._osInstance = null;
}
}
OverlayScrollbarsComponent.prototype.ngOnChanges = function (changes) {
var optionsChange = changes._options;
if (optionsChange && OverlayScrollbars.valid(this._osInstance)) {
this._osInstance.options(optionsChange.currentValue);
}
};
OverlayScrollbarsComponent.decorators = [
beforeDestroy() {
let osInstance = (this as OverlayScrollbarsComponent)._osInstace;
if (OverlayScrollbars.valid(osInstance)) {
osInstance.destroy();
(this as OverlayScrollbarsComponent)._osInstace = null;
}
}
}) {
OverlayScrollbarsComponent.prototype.ngOnDestroy = function () {
if (OverlayScrollbars.valid(this._osInstance)) {
this._osInstance.destroy();
this._osInstance = null;
}
};
OverlayScrollbarsComponent.prototype.ngOnChanges = function (changes) {
options(currOptions, oldOptions) {
let osInstance = this._osInstace;
if (OverlayScrollbars.valid(osInstance)) {
osInstance.options(currOptions);
}
}
},
ngOnDestroy() {
if (OverlayScrollbars.valid(this._osInstance)) {
this._osInstance.destroy();
this._osInstance = null;
}
}
beforeDestroy() {
let osInstance = this._osInstace;
if (OverlayScrollbars.valid(osInstance)) {
osInstance.destroy();
this._osInstace = null;
}
}
}) {
ngOnChanges(changes: SimpleChanges) {
let optionsChange = changes._options;
if (optionsChange && OverlayScrollbars.valid(this._osInstance)) {
this._osInstance.options(optionsChange.currentValue);
}
}
}
componentWillUnmount() {
if (OverlayScrollbars.valid(this._osInstance)) {
this._osInstance.destroy();
this._osInstance = null;
}
}
componentDidUpdate(prevProps) {
componentDidUpdate(prevProps) {
if (OverlayScrollbars.valid(this._osInstance)) {
this._osInstance.options(this.props.options);
}
}
render() {