@@ -21,15 +21,12 @@ export class NumericalComparisonFilterModel extends FilterModel {
2121 /**
2222 * Constructor
2323 * @param {object } [options] options of the filter
24- * @param {boolean } [options.useOperatorAsNormalizationKey] if true, operator value will be used as normalization key, else operator will be
25- * passed with key `operator` and `operand` will be passed as `limit`
2624 * @param {number } [options.scale] scale applied on the value of the operand in normalization
2725 * @param {boolean } [options.integer=false] if true, value is parsed as integer (else, it will be parsed as float)
2826 */
2927 constructor ( options ) {
3028 super ( ) ;
31- const { useOperatorAsNormalizationKey, scale = 1 , integer = false } = options || { } ;
32- this . _useOperatorAsNormalizationKey = Boolean ( useOperatorAsNormalizationKey ) ;
29+ const { scale = 1 , integer = false } = options || { } ;
3330
3431 this . _operatorSelectionModel = new ComparisonSelectionModel ( ) ;
3532 this . _operatorSelectionModel . visualChange$ . bubbleTo ( this . _visualChange$ ) ;
@@ -86,16 +83,10 @@ export class NumericalComparisonFilterModel extends FilterModel {
8683 * @inheritDoc
8784 */
8885 get normalized ( ) {
89- if ( this . _useOperatorAsNormalizationKey ) {
90- return {
91- [ this . _operatorSelectionModel . current ] : this . _operandInputModel . value ,
92- } ;
93- } else {
94- return {
95- operator : this . _operatorSelectionModel . current ,
96- limit : this . _operandInputModel . value ,
97- } ;
98- }
86+ return {
87+ operator : this . _operatorSelectionModel . current ,
88+ limit : this . _operandInputModel . value ,
89+ } ;
9990 }
10091
10192 // eslint-disable-next-line valid-jsdoc
0 commit comments