MCPcopy Create free account
hub / github.com/neomjs/neo / beforeSetOperators

Method beforeSetOperators

src/filter/ToggleOperatorsButton.mjs:70–83  ·  view source on GitHub ↗

* Triggered before the operators config gets changed * @param {String} value * @param {String} oldValue * @protected

(value, oldValue)

Source from the content-addressed store, hash-verified

68 * @protected
69 */
70 beforeSetOperators(value, oldValue) {
71 if (Array.isArray(value)) {
72 let i = 0,
73 len = value.length;
74
75 for (; i < len; i++) {
76 if (this.beforeSetEnumValue(value[i], oldValue, 'operators', Filter.operators) !== value[i]) {
77 return oldValue
78 }
79 }
80 }
81
82 return value
83 }
84
85 /**
86 * @param {Object} data

Callers

nothing calls this directly

Calls 2

isArrayMethod · 0.80
beforeSetEnumValueMethod · 0.80

Tested by

no test coverage detected