Lines Matching refs:validator
164 VALIDATOR = "validator",
193 * <li>With a validator function, to validate values before they are stored.</li>
215 * <p>You can return this value from your setter if you wish to combine validator and setter
316 * <dt>validator <Function | String></dt>
319 * The validator function invoked prior to setting the stored value. Returning
320 * false from the validator function will prevent the value from being stored.
323 * <p>validator can also be set to a string, representing the name of the instance method to be used as the validator function.</p>
333 * <p>The setter, getter and validator are invoked with the value and name passed in as the first and second arguments, and with
706 validator = cfg.validator,
714 if (validator) {
715 if (!validator.call) {
717 validator = this[validator];
719 if (validator) {
720 valid = validator.call(host, newVal, name);
729 if (!validator || valid) {