Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private trackSelections(matrix: INumericalMatrix) {
if (this.trackedSelections) {
this.trackedSelections.off(ProductIDType.EVENT_SELECT_PRODUCT, this.onSelectionChanged);
}
this.trackedSelections = matrix.producttype;
this.trackedSelections.on(ProductIDType.EVENT_SELECT_PRODUCT, this.onSelectionChanged);
}
private trackSelections(matrix: INumericalMatrix) {
if (this.trackedSelections) {
this.trackedSelections.off(ProductIDType.EVENT_SELECT_PRODUCT, this.onSelectionChanged);
}
this.trackedSelections = matrix.producttype;
this.trackedSelections.on(ProductIDType.EVENT_SELECT_PRODUCT, this.onSelectionChanged);
}