Lines Matching refs:validator
30 VALIDATOR = "validator",
59 * <li>With a validator function, to validate values before they are stored.</li>
81 * <p>You can return this value from your setter if you wish to combine validator and setter
182 * <dt>validator <Function | String></dt>
185 * The validator function invoked prior to setting the stored value. Returning
186 * false from the validator function will prevent the value from being stored.
189 * <p>validator can also be set to a string, representing the name of the instance method to be used as the validator function.</p>
199 * <p>The setter, getter and validator are invoked with the value and name passed in as the first and second arguments, and with
572 validator = cfg.validator,
580 if (validator) {
581 if (!validator.call) {
583 validator = this[validator];
585 if (validator) {
586 valid = validator.call(host, newVal, name);
595 if (!validator || valid) {