This project is archived and is in readonly mode.

#438 ✓resolved

Form.Validator: validatorProps attribute is ignored since you're using $moo:.. , w/solution

Reported by Varyen | November 9th, 2010 @ 06:41 AM | in

Element.Properties.validatorProps = {

    set: function(props){
        return this.eliminate('$moo:validatorProps').store('$moo:validatorProps', props);

    get: function(props){
        if (props) this.set(props);
        if (this.retrieve('$moo:validatorProps')) return this.retrieve('$moo:validatorProps');
        if (this.getProperty(''$moo:validatorProps')){ // without $moo
            try {
      '$moo:validatorProps', JSON.decode(this.getProperty(''$moo:validatorProps')));//  without $moo

If you want to read attribute validatorProps, you should use
(this.getProperty('validatorProps') and JSON.decode(this.getProperty('validatorProps') instead.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

The MooTools Extensions

People watching this ticket